Auto merge of #119459 - cjgillot:inline-mir-utils, r=compiler-errors
Inline a few utility functions around MIR Most of them are small enough to benefit from inlining.
This commit is contained in:
commit
d62f05b842
4 changed files with 24 additions and 0 deletions
|
@ -394,6 +394,7 @@ impl<Node: Idx> Dominators<Node> {
|
|||
/// # Panics
|
||||
///
|
||||
/// Panics if `b` is unreachable.
|
||||
#[inline]
|
||||
pub fn dominates(&self, a: Node, b: Node) -> bool {
|
||||
match &self.kind {
|
||||
Kind::Path => a.index() <= b.index(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue