commit | b377f0120d5fbe267a6fe20069a61cfe32784881 | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Mon Jul 26 17:35:32 2010 +0000 |
committer | Dan Gohman <gohman@apple.com> | Mon Jul 26 17:35:32 2010 +0000 |
tree | 6f3751906230998a43fdc2fc99a169173e629d2b | |
parent | 85095603292c312453beac445609b848410f605f [diff] [blame] |
A block dominates itself, by definition. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109400 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/Scalar/LoopIndexSplit.cpp b/lib/Transforms/Scalar/LoopIndexSplit.cpp index 2a52c99..1def160 100644 --- a/lib/Transforms/Scalar/LoopIndexSplit.cpp +++ b/lib/Transforms/Scalar/LoopIndexSplit.cpp
@@ -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); }