[llvm-commits] CVS: llvm/include/llvm/Analysis/Dominators.h
Devang Patel
dpatel at apple.com
Mon Jun 11 16:31:45 PDT 2007
Changes in directory llvm/include/llvm/Analysis:
Dominators.h updated: 1.100 -> 1.101
---
Log message:
Add and use DominatorTreeBase::findNearestCommonDominator().
---
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.100 llvm/include/llvm/Analysis/Dominators.h:1.101
--- llvm/include/llvm/Analysis/Dominators.h:1.100 Fri Jun 8 12:59:02 2007
+++ llvm/include/llvm/Analysis/Dominators.h Mon Jun 11 18:31:22 2007
@@ -234,6 +234,10 @@
return dominates(getNode(A), getNode(B));
}
+ /// findNearestCommonDominator - Find nearest common dominator basic block
+ /// for basic block A and B. If there is no such block then return NULL.
+ BasicBlock *findNearestCommonDominator(BasicBlock *A, BasicBlock *B);
+
// dominates - Return true if A dominates B. This performs the
// special checks necessary if A and B are in the same basic block.
bool dominates(Instruction *A, Instruction *B);
More information about the llvm-commits
mailing list