Merge remote-tracking branch 'origin/master' into master-next

This commit is contained in:
swift-ci
2017-12-20 14:49:53 -08:00
2 changed files with 9 additions and 2 deletions

View File

@@ -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;