commit | cb6816dc812a81d8d53ec978b24d695c1babe611 | [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 | a29dbd2dcc04c8d07dd9e1e49b4e54debbc23996 [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); }