You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inspect the generated machine code at the breakpoint (so far reproed on x64). The call to getB is not inlined, as expected, but the call to getA has been fully inlined.
Expected Behavior
Both calls are not inlined.
Notes:
The code is coming from here, but with the export keywords removed. I tried to strip down the repro further, but the compiler kept doing extra "smart things" in the optimized build, which was resulting in less demonstrative results.
Zig Version
0.13.0
Steps to Reproduce and Observed Behavior
Take the following code and compile in
ReleaseFast
.Inspect the generated machine code at the breakpoint (so far reproed on x64). The call to
getB
is not inlined, as expected, but the call togetA
has been fully inlined.Expected Behavior
Both calls are not inlined.
Notes:
export
keywords removed. I tried to strip down the repro further, but the compiler kept doing extra "smart things" in the optimized build, which was resulting in less demonstrative results.@call
to lazy function withnever_inline
modifier #19905?The text was updated successfully, but these errors were encountered: