Skip to content

Commit

Permalink
Rollup merge of #107151 - tmiasko:dominators-no-inline, r=compiler-er…
Browse files Browse the repository at this point in the history
…rors

Instantiate dominators algorithm only once

Remove inline from BasicBlocks::dominators to instantiate the dominator algorithm only once - in the rustc_middle crate.
  • Loading branch information
JohnTitor committed Jan 23, 2023
2 parents 809d4aa + ae39ee2 commit c0f80e7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion compiler/rustc_middle/src/mir/basic_blocks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ impl<'tcx> BasicBlocks<'tcx> {
*self.cache.is_cyclic.get_or_init(|| graph::is_cyclic(self))
}

#[inline]
pub fn dominators(&self) -> Dominators<BasicBlock> {
dominators(&self)
}
Expand Down

0 comments on commit c0f80e7

Please sign in to comment.