Skip to content

Commit d257bac

Browse files
committed
note LLVM in fixme
1 parent c74c648 commit d257bac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/transform/const_prop.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,7 @@ impl<'mir, 'tcx> MutVisitor<'tcx> for ConstPropagator<'mir, 'tcx> {
11121112
}
11131113
TerminatorKind::SwitchInt { ref mut discr, .. } => {
11141114
// FIXME: This is currently redundant with `visit_operand`, but sadly
1115-
// always visiting operands currently causes a perf regression, so
1115+
// always visiting operands currently causes a perf regression in LLVM codegen, so
11161116
// `visit_operand` currently only runs for propagates places for `mir_opt_level=3`.
11171117
self.propagate_operand(discr, location)
11181118
}

0 commit comments

Comments
 (0)