Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit 703bd8d

Browse files
committed
Sink comment, NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219149 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 807111a commit 703bd8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Transforms/Utils/LoopUnroll.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,9 @@ bool llvm::UnrollLoop(Loop *L, unsigned Count, unsigned TripCount,
308308
BasicBlock *New = CloneBasicBlock(*BB, VMap, "." + Twine(It));
309309
Header->getParent()->getBasicBlockList().push_back(New);
310310

311-
// Loop over all of the PHI nodes in the block, changing them to use the
312-
// incoming values from the previous block.
313311
if (*BB == Header)
312+
// Loop over all of the PHI nodes in the block, changing them to use
313+
// the incoming values from the previous block.
314314
for (unsigned i = 0, e = OrigPHINode.size(); i != e; ++i) {
315315
PHINode *NewPHI = cast<PHINode>(VMap[OrigPHINode[i]]);
316316
Value *InVal = NewPHI->getIncomingValueForBlock(LatchBlock);

0 commit comments

Comments
 (0)