We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 772d51f commit 6afbfcaCopy full SHA for 6afbfca
compiler/rustc_mir_transform/src/lib.rs
@@ -480,8 +480,7 @@ fn run_optimization_passes<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
480
// FIXME(#70073): This pass is responsible for both optimization as well as some lints.
481
&const_prop::ConstProp,
482
//
483
- // FIXME: The old pass manager ran this only at mir-opt-level >= 1, but
484
- // const-prop runs unconditionally. Should this run unconditionally as well?
+ // Const-prop runs unconditionally, but doesn't mutate the MIR at mir-opt-level=0.
485
&o1(simplify_branches::SimplifyConstCondition::new("after-const-prop")),
486
&early_otherwise_branch::EarlyOtherwiseBranch,
487
&simplify_comparison_integral::SimplifyComparisonIntegral,
0 commit comments