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 3ab394d commit 976e3a3Copy full SHA for 976e3a3
compiler/rustc_mir_transform/src/jump_threading.rs
@@ -89,7 +89,7 @@ impl<'tcx> crate::MirPass<'tcx> for JumpThreading {
89
opportunities: Vec::new(),
90
};
91
92
- for bb in body.basic_blocks.indices() {
+ for (bb, _) in traversal::reverse_postorder(body) {
93
finder.start_from_switch(bb);
94
}
95
0 commit comments