A block dominates itself, by definition.
authorDan Gohman <gohman@apple.com>
Mon, 26 Jul 2010 17:35:32 +0000 (17:35 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 26 Jul 2010 17:35:32 +0000 (17:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109400 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/LoopIndexSplit.cpp

index 2a52c99a59c1afd1c13c4be1a101799e739c3d3c..1def1603cea1a482d8081385e8c4db18f7697b6d 100644 (file)
@@ -677,7 +677,7 @@ void LoopIndexSplit::removeBlocks(BasicBlock *DeadBB, Loop *LP,
       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);
       }