[llvm] r219149 - Sink comment, NFC
Duncan P. N. Exon Smith
dexonsmith at apple.com
Mon Oct 6 15:04:59 PDT 2014
Author: dexonsmith
Date: Mon Oct 6 17:04:59 2014
New Revision: 219149
URL: http://llvm.org/viewvc/llvm-project?rev=219149&view=rev
Log:
Sink comment, NFC
Modified:
llvm/trunk/lib/Transforms/Utils/LoopUnroll.cpp
Modified: llvm/trunk/lib/Transforms/Utils/LoopUnroll.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/LoopUnroll.cpp?rev=219149&r1=219148&r2=219149&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/LoopUnroll.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/LoopUnroll.cpp Mon Oct 6 17:04:59 2014
@@ -308,9 +308,9 @@ bool llvm::UnrollLoop(Loop *L, unsigned
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);
More information about the llvm-commits
mailing list