Skip to content

Commit 011314d

Browse files
committed
Remove obsolete comment.
1 parent 905d2e0 commit 011314d

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

compiler/rustc_mir_transform/src/dest_prop.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -150,14 +150,6 @@ pub(super) struct DestinationPropagation;
150150

151151
impl<'tcx> crate::MirPass<'tcx> for DestinationPropagation {
152152
fn is_enabled(&self, sess: &rustc_session::Session) -> bool {
153-
// For now, only run at MIR opt level 3. Two things need to be changed before this can be
154-
// turned on by default:
155-
// 1. Because of the overeager removal of storage statements, this can cause stack space
156-
// regressions. This opt is not the place to fix this though, it's a more general
157-
// problem in MIR.
158-
// 2. Despite being an overall perf improvement, this still causes a 30% regression in
159-
// keccak. We can temporarily fix this by bounding function size, but in the long term
160-
// we should fix this by being smarter about invalidating analysis results.
161153
sess.mir_opt_level() >= 2
162154
}
163155

0 commit comments

Comments
 (0)