[llvm-commits] [llvm] r97915 - /llvm/trunk/include/llvm/Analysis/PostDominators.h
Tobias Grosser
grosser at fim.uni-passau.de
Sun Mar 7 03:15:04 PST 2010
Author: grosser
Date: Sun Mar 7 05:15:04 2010
New Revision: 97915
URL: http://llvm.org/viewvc/llvm-project?rev=97915&view=rev
Log:
Add findNearestCommonDominator() for PostDominators.
Add a missing interface to be able to call findNearestCommonDominator
for a PostDominanceTree. The function itself is already implemented in
DominatorTreeBase. The interface however was only added to the
DominatorTree class, but not the PostDominatorClass.
Modified:
llvm/trunk/include/llvm/Analysis/PostDominators.h
Modified: llvm/trunk/include/llvm/Analysis/PostDominators.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/PostDominators.h?rev=97915&r1=97914&r2=97915&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/PostDominators.h (original)
+++ llvm/trunk/include/llvm/Analysis/PostDominators.h Sun Mar 7 05:15:04 2010
@@ -69,6 +69,10 @@
return DT->properlyDominates(A, B);
}
+ inline BasicBlock *findNearestCommonDominator(BasicBlock *A, BasicBlock *B) {
+ return DT->findNearestCommonDominator(A, B);
+ }
+
virtual void releaseMemory() {
DT->releaseMemory();
}
More information about the llvm-commits
mailing list