File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed
rustc_data_structures/src/graph/dominators Expand file tree Collapse file tree 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> {
394394 /// # Panics
395395 ///
396396 /// Panics if `b` is unreachable.
397+ #[ inline]
397398 pub fn dominates ( & self , a : Node , b : Node ) -> bool {
398399 match & self . kind {
399400 Kind :: Path => a. index ( ) <= b. index ( ) ,
Original file line number Diff line number Diff line change @@ -1604,6 +1604,7 @@ impl Location {
16041604 false
16051605 }
16061606
1607+ #[ inline]
16071608 pub fn dominates ( & self , other : Location , dominators : & Dominators < BasicBlock > ) -> bool {
16081609 if self . block == other. block {
16091610 self . statement_index <= other. statement_index
@@ -1623,6 +1624,7 @@ pub enum DefLocation {
16231624}
16241625
16251626impl DefLocation {
1627+ #[ inline]
16261628 pub fn dominates ( self , location : Location , dominators : & Dominators < BasicBlock > ) -> bool {
16271629 match self {
16281630 DefLocation :: Argument => true ,
Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ impl SsaLocals {
9494 self . direct_uses [ local]
9595 }
9696
97+ #[ inline]
9798 pub fn assignment_dominates (
9899 & self ,
99100 dominators : & Dominators < BasicBlock > ,
You can’t perform that action at this time.
0 commit comments