Uh oh!
There was an error while loading. Please reload this page.
Remove -Zfuel. - #115293
Conversation
rustbot
commented
Aug 27, 2023
r? @wesleywiser (rustbot has picked a reviewer for you, use r? to override) |
rustbot
commented
Aug 27, 2023
Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt |
I found it quite useful in the past for bisecting bugs (it could be declared incompatible with incremental compilation if that aspect is an issue). |
This comment has been minimized.
This comment has been minimized.
JakobDegen
commented
Aug 27, 2023
I agree we should remove it right now, primarily because it's usefulness is significantly diminished by inconsistent use. At some point in the future we should switch to more structured transformations (as opposed to writing to |
This comment has been minimized.
This comment has been minimized.
bors
commented
Aug 29, 2023
☔ The latest upstream changes (presumably #112775) made this pull request unmergeable. Please resolve the merge conflicts. |
bors
commented
Sep 13, 2023
☔ The latest upstream changes (presumably #115803) made this pull request unmergeable. Please resolve the merge conflicts. |
bors
commented
Sep 21, 2023
☔ The latest upstream changes (presumably #116027) made this pull request unmergeable. Please resolve the merge conflicts. |
bors
commented
Sep 27, 2023
☔ The latest upstream changes (presumably #116144) made this pull request unmergeable. Please resolve the merge conflicts. |
Similar to @tmiasko, I've also found this useful in the past. The point that this is inconsistently used is true, but wouldn't it be better to fix that than to remove it entirely? @pnkfelix suggested that attempting to use |
cjgillot
commented
Oct 5, 2023
We now have a more reliable way to disable optimizations: |
bors
commented
Oct 13, 2023
☔ The latest upstream changes (presumably #115964) made this pull request unmergeable. Please resolve the merge conflicts. |
workingjubilee
commented
Oct 17, 2023
It is more important that the information in the rustc-dev-guide is actually up-to-date, and that "how to debug optimization" is easy and accurate, as people try to actually use it e.g. to analyze and debug their codegen problems. By holding on to this, we are advising much more inexperienced devs to try to make sense of a de facto useless option. So, do we want random passerby to try to use |
wesleywiser
left a comment
There was a problem hiding this comment.
r=me with a corresponding PR to adjust rustc-dev-guide
The -Zfuel can be used to bisect specific transformation that is incorrect. It makes it trivial to generate diff between working and broken MIR. To locate the source code that is being miscompiled and extract minimized test case. The -Zmir-enable-passes is no alternative for such use cases. It works perfectly fine even if not every single MIR optimizations uses it - just run bisection, dump MIR at the boundary, and diff between those. If for some reason the current inconsistent use is a deal breaker for others, I can prepare a pull request that will incorporate it directly into a pass manager. I don't think we should remove it without a proper replacement. |
bjorn3
commented
Nov 26, 2023
|
bors
commented
Aug 19, 2024
☔ The latest upstream changes (presumably #129261) made this pull request unmergeable. Please resolve the merge conflicts. |
bors
commented
Aug 28, 2024
☔ The latest upstream changes (presumably #129691) made this pull request unmergeable. Please resolve the merge conflicts. |
bors
commented
Sep 3, 2024
☔ The latest upstream changes (presumably #129777) made this pull request unmergeable. Please resolve the merge conflicts. |
nnethercote
commented
Sep 4, 2024
It will be good to get this merged. I have some follow-up cleanups that rely on |
dianqk
left a comment
There was a problem hiding this comment.
It will be good to get this merged as well. I don’t use -Zfuel, and the reliability of this option still depends on whether we remember to call consider_optimizing.
dianqk
commented
Nov 27, 2024
|
dianqk
commented
Nov 27, 2024
🧐 |
dianqk
commented
Nov 27, 2024
@bors r=wesleywiser,DianQK |
dianqk
commented
Nov 27, 2024
@bors r=wesleywiser,DianQK |
bors
commented
Nov 27, 2024
…mpiler-errors Rollup of 8 pull requests Successful merges: - rust-lang#115293 (Remove -Zfuel.) - rust-lang#132605 (CI: increase timeout from 4h to 6h) - rust-lang#133304 (Revert diagnostics hack to fix ICE 132920) - rust-lang#133402 (Constify `Drop` and `Destruct`) - rust-lang#133458 (Fix `Result` and `Option` not getting a jump to def link generated) - rust-lang#133471 (gce: fix typing_mode mismatch) - rust-lang#133475 (`MaybeStorage` improvements) - rust-lang#133513 (Only ignore windows-gnu in avr-jmp-offset) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#115293 - cjgillot:no-fuel, r=wesleywiser,DianQK Remove -Zfuel. I'm not sure this feature is used. I only found 2 references in a google search, both referring to its introduction. Meanwhile, it's a global mutable state, untracked by incremental compilation, so incompatible with it.
I'm not sure this feature is used. I only found 2 references in a google search, both referring to its introduction.
Meanwhile, it's a global mutable state, untracked by incremental compilation, so incompatible with it.