Add basic block level properlyDominates(A,B) interface.

llvm-svn: 37497
This commit is contained in:
Devang Patel 2007-06-07 21:34:22 +00:00
parent 9a4d987a5f
commit 895ab0c570
1 changed files with 4 additions and 0 deletions

View File

@ -160,6 +160,10 @@ protected:
return dominatedBySlowTreeWalk(A, B);
}
inline bool properlyDominates(BasicBlock *A, BasicBlock *B) {
return properlyDominates(getNode(A), getNode(B));
}
bool dominatedBySlowTreeWalk(const DomTreeNode *A,
const DomTreeNode *B) const {
const DomTreeNode *IDom;