[llvm-commits] [llvm] r109400 - /llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp
Dan Gohman
gohman at apple.com
Mon Jul 26 10:35:32 PDT 2010
Author: djg
Date: Mon Jul 26 12:35:32 2010
New Revision: 109400
URL: http://llvm.org/viewvc/llvm-project?rev=109400&view=rev
Log:
A block dominates itself, by definition.
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=109400&r1=109399&r2=109400&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopIndexSplit.cpp Mon Jul 26 12:35:32 2010
@@ -677,7 +677,7 @@
for(pred_iterator PI = pred_begin(FrontierBB), PE = pred_end(FrontierBB);
PI != PE; ++PI) {
BasicBlock *P = *PI;
- if (P == DeadBB || DT->dominates(DeadBB, P))
+ if (DT->dominates(DeadBB, P))
PredBlocks.push_back(P);
}
More information about the llvm-commits
mailing list