File tree 3 files changed +4
-0
lines changed
rustc_data_structures/src/graph/dominators
3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -394,6 +394,7 @@ impl<Node: Idx> Dominators<Node> {
394
394
/// # Panics
395
395
///
396
396
/// Panics if `b` is unreachable.
397
+ #[ inline]
397
398
pub fn dominates ( & self , a : Node , b : Node ) -> bool {
398
399
match & self . kind {
399
400
Kind :: Path => a. index ( ) <= b. index ( ) ,
Original file line number Diff line number Diff line change @@ -1604,6 +1604,7 @@ impl Location {
1604
1604
false
1605
1605
}
1606
1606
1607
+ #[ inline]
1607
1608
pub fn dominates ( & self , other : Location , dominators : & Dominators < BasicBlock > ) -> bool {
1608
1609
if self . block == other. block {
1609
1610
self . statement_index <= other. statement_index
@@ -1623,6 +1624,7 @@ pub enum DefLocation {
1623
1624
}
1624
1625
1625
1626
impl DefLocation {
1627
+ #[ inline]
1626
1628
pub fn dominates ( self , location : Location , dominators : & Dominators < BasicBlock > ) -> bool {
1627
1629
match self {
1628
1630
DefLocation :: Argument => true ,
Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ impl SsaLocals {
94
94
self . direct_uses [ local]
95
95
}
96
96
97
+ #[ inline]
97
98
pub fn assignment_dominates (
98
99
& self ,
99
100
dominators : & Dominators < BasicBlock > ,
You can’t perform that action at this time.
0 commit comments