[llvm-commits] CVS: llvm/lib/Transforms/Utils/LoopSimplify.cpp

Devang Patel dpatel at apple.com
Mon Jun 11 16:31:52 PDT 2007



Changes in directory llvm/lib/Transforms/Utils:

LoopSimplify.cpp updated: 1.103 -> 1.104
---
Log message:

Add and use DominatorTreeBase::findNearestCommonDominator().


---
Diffs of the changes:  (+1 -1)

 LoopSimplify.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Transforms/Utils/LoopSimplify.cpp
diff -u llvm/lib/Transforms/Utils/LoopSimplify.cpp:1.103 llvm/lib/Transforms/Utils/LoopSimplify.cpp:1.104
--- llvm/lib/Transforms/Utils/LoopSimplify.cpp:1.103	Mon Jun 11 16:45:31 2007
+++ llvm/lib/Transforms/Utils/LoopSimplify.cpp	Mon Jun 11 18:31:22 2007
@@ -768,7 +768,7 @@
   assert(i != PredBlocks.size() && "No reachable preds?");
   for (i = i + 1; i < PredBlocks.size(); ++i) {
     if (DT.isReachableFromEntry(PredBlocks[i]))
-      NewBBIDom = DT.nearestCommonDominator(NewBBIDom, PredBlocks[i]);
+      NewBBIDom = DT.findNearestCommonDominator(NewBBIDom, PredBlocks[i]);
   }
   assert(NewBBIDom && "No immediate dominator found??");
   






More information about the llvm-commits mailing list