[llvm-commits] [llvm] r109401 - /llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp
Dan Gohman
gohman at apple.com
Mon Jul 26 10:37:36 PDT 2010
Author: djg
Date: Mon Jul 26 12:37:36 2010
New Revision: 109401
URL: http://llvm.org/viewvc/llvm-project?rev=109401&view=rev
Log:
Use DominatorTree::properlyDominates instead of dominates with an
explicit inequality check.
Modified:
llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp?rev=109401&r1=109400&r2=109401&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp Mon Jul 26 12:37:36 2010
@@ -799,7 +799,7 @@
// the dominance frontiers.
for (Loop::block_iterator I = LP->block_begin(), E = LP->block_end();
I != E; ++I) {
- if (*I == CondBB || !DT->dominates(CondBB, *I)) continue;
+ if (!DT->properlyDominates(CondBB, *I)) continue;
DominanceFrontier::iterator BBDF = DF->find(*I);
DominanceFrontier::DomSetType::iterator DomSetI = BBDF->second.begin();
DominanceFrontier::DomSetType::iterator DomSetE = BBDF->second.end();
More information about the llvm-commits
mailing list