[llvm-commits] CVS: llvm/include/llvm/Analysis/Dominators.h
Devang Patel
dpatel at apple.com
Thu Jun 7 14:34:44 PDT 2007
Changes in directory llvm/include/llvm/Analysis:
Dominators.h updated: 1.94 -> 1.95
---
Log message:
Add basic block level properlyDominates(A,B) interface.
---
Diffs of the changes: (+4 -0)
Dominators.h | 4 ++++
1 files changed, 4 insertions(+)
Index: llvm/include/llvm/Analysis/Dominators.h
diff -u llvm/include/llvm/Analysis/Dominators.h:1.94 llvm/include/llvm/Analysis/Dominators.h:1.95
--- llvm/include/llvm/Analysis/Dominators.h:1.94 Thu Jun 7 13:39:40 2007
+++ llvm/include/llvm/Analysis/Dominators.h Thu Jun 7 16:34:22 2007
@@ -160,6 +160,10 @@
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;
More information about the llvm-commits
mailing list