File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed
compiler/rustc_mir_transform/src Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -150,14 +150,6 @@ pub(super) struct DestinationPropagation;
150
150
151
151
impl < ' tcx > crate :: MirPass < ' tcx > for DestinationPropagation {
152
152
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.
161
153
sess. mir_opt_level ( ) >= 2
162
154
}
163
155
You can’t perform that action at this time.
0 commit comments