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 28928c7 commit 8ca4f65Copy full SHA for 8ca4f65
compiler/rustc_mir/src/transform/unreachable_prop.rs
@@ -12,13 +12,7 @@ use std::borrow::Cow;
12
pub struct UnreachablePropagation;
13
14
impl MirPass<'_> for UnreachablePropagation {
15
- fn run_pass<'tcx>(&self, tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
16
- if tcx.sess.opts.debugging_opts.mir_opt_level < 3 {
17
- // Enable only under -Zmir-opt-level=3 as in some cases (check the deeply-nested-opt
18
- // perf benchmark) LLVM may spend quite a lot of time optimizing the generated code.
19
- return;
20
- }
21
-
+ fn run_pass<'tcx>(&self, _tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
22
let mut unreachable_blocks = FxHashSet::default();
23
let mut replacements = FxHashMap::default();
24
0 commit comments