summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-10-06 22:04:59 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-10-06 22:04:59 +0000
commit0bbf5418c6550a38822678ae103eb69c08d2344d (patch)
treeed02b6ffa5e300ff6c9d49f213cf18ac84345caf /llvm/lib/Transforms/Utils
parentb2c59e9faa536d417d841f0ce1114d33b42bdf38 (diff)
downloadbcm5719-llvm-0bbf5418c6550a38822678ae103eb69c08d2344d.tar.gz
bcm5719-llvm-0bbf5418c6550a38822678ae103eb69c08d2344d.zip
Sink comment, NFC
llvm-svn: 219149
Diffstat (limited to 'llvm/lib/Transforms/Utils')
-rw-r--r--llvm/lib/Transforms/Utils/LoopUnroll.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopUnroll.cpp b/llvm/lib/Transforms/Utils/LoopUnroll.cpp
index 4326dc11616..fd46a4b8e54 100644
--- a/llvm/lib/Transforms/Utils/LoopUnroll.cpp
+++ b/llvm/lib/Transforms/Utils/LoopUnroll.cpp
@@ -308,9 +308,9 @@ bool llvm::UnrollLoop(Loop *L, unsigned Count, unsigned TripCount,
BasicBlock *New = CloneBasicBlock(*BB, VMap, "." + Twine(It));
Header->getParent()->getBasicBlockList().push_back(New);
- // Loop over all of the PHI nodes in the block, changing them to use the
- // incoming values from the previous block.
if (*BB == Header)
+ // Loop over all of the PHI nodes in the block, changing them to use
+ // the incoming values from the previous block.
for (unsigned i = 0, e = OrigPHINode.size(); i != e; ++i) {
PHINode *NewPHI = cast<PHINode>(VMap[OrigPHINode[i]]);
Value *InVal = NewPHI->getIncomingValueForBlock(LatchBlock);
OpenPOWER on IntegriCloud