Skip to content

Commit c0f80e7

Browse files
authored
Rollup merge of #107151 - tmiasko:dominators-no-inline, r=compiler-errors
Instantiate dominators algorithm only once Remove inline from BasicBlocks::dominators to instantiate the dominator algorithm only once - in the rustc_middle crate.
2 parents 809d4aa + ae39ee2 commit c0f80e7

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

compiler/rustc_middle/src/mir/basic_blocks.rs

-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ impl<'tcx> BasicBlocks<'tcx> {
4141
*self.cache.is_cyclic.get_or_init(|| graph::is_cyclic(self))
4242
}
4343

44-
#[inline]
4544
pub fn dominators(&self) -> Dominators<BasicBlock> {
4645
dominators(&self)
4746
}

0 commit comments

Comments
 (0)