mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge remote-tracking branch 'origin/master' into master-next
This commit is contained in:
@@ -50,6 +50,11 @@ public:
|
||||
/// Does instruction A properly dominate instruction B?
|
||||
bool properlyDominates(SILInstruction *a, SILInstruction *b);
|
||||
|
||||
/// Does instruction A dominate instruction B?
|
||||
bool dominates(SILInstruction *a, SILInstruction *b) {
|
||||
return a == b || properlyDominates(a, b);
|
||||
}
|
||||
|
||||
/// Does value A properly dominate instruction B?
|
||||
bool properlyDominates(SILValue a, SILInstruction *b);
|
||||
|
||||
@@ -72,6 +77,7 @@ public:
|
||||
}
|
||||
|
||||
using DominatorTreeBase::properlyDominates;
|
||||
using DominatorTreeBase::dominates;
|
||||
|
||||
bool isValid(SILFunction *F) const {
|
||||
return getNode(&F->front()) != nullptr;
|
||||
|
||||
Reference in New Issue
Block a user