We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If removing a return reveals a new opportunity to remove a return, the compiler does not take advantage of it.
For instance,
fn g () -> reg u32 { reg u32 x; x = 0; return x; } fn f () -> reg u32 { reg u32 x; x = g (); return x; } export fn main () -> reg u32 { reg u32 res; res = 0; _ = f(); return res; }
The compiler removes the return value of f and thus could remove the return value of g, but it does not do it.
f
g
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If removing a return reveals a new opportunity to remove a return, the compiler does not take advantage of it.
For instance,
The compiler removes the return value of
f
and thus could remove the return value ofg
, but it does not do it.The text was updated successfully, but these errors were encountered: