Skip to content

Commit 0b04b64

Browse files
committed
Const propagation often marks terminator operands as constant
1 parent fe2d923 commit 0b04b64

File tree

1 file changed

+1
-0
lines changed
  • src/librustc_mir/transform

1 file changed

+1
-0
lines changed

src/librustc_mir/transform/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ fn optimized_mir<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, def_id: DefId) -> &'tcx
256256
// Optimizations begin.
257257
inline::Inline,
258258
instcombine::InstCombine,
259+
simplify_branches::SimplifyBranches::new("after-const-prop"),
259260
deaggregator::Deaggregator,
260261
copy_prop::CopyPropagation,
261262
remove_noop_landing_pads::RemoveNoopLandingPads,

0 commit comments

Comments
 (0)