-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Make all mir optimizations respect the optimization fuel #77402
New issue
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
Comments
It is also used by:
|
Adding a paragraph to the MIR optimizations part of the |
Is there still interest in this? I'm new to this section of the compiler but this seems like a nice introduction to some mir passes. If I understand correctly, we need to add calls to |
Sorry about the late response. Yes, we still want this. I personally haven't used it before, so your guess is as good as mine, but what you wrote sounds reasonable. Ideally look at how other passes use it and then try to apply it to some pass that seems expensive |
@rustbot claim |
Right now only inlining actually uses optimization fuel (
-Zfuel=42
). We should start adding it to all of our optimizations and requiring new optimizations to use it.cc @rust-lang/wg-mir-opt
The text was updated successfully, but these errors were encountered: