1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

Minor comment tweaks

llvm-svn: 29226
This commit is contained in:
Chris Lattner 2006-07-20 19:06:16 +00:00
parent c4a5448546
commit 3890fa2c4a

View File

@ -266,18 +266,17 @@ bool LoopUnroll::visitLoop(Loop *L) {
else
delete LI->removeLoop(std::find(LI->begin(), LI->end(), L));
// FIXME: Should update dominator analyses
// Remove LCSSA Phis from the exit block
// Remove single-entry Phis from the exit block.
for (BasicBlock::iterator ExitInstr = LoopExit->begin();
PHINode* PN = dyn_cast<PHINode>(ExitInstr); ++ExitInstr) {
assert(PN->getNumIncomingValues() == 1
&& "Block should only have one pred, so Phi's must be LCSSA");
&& "Block should only have one pred, so Phi's must be single entry");
PN->replaceAllUsesWith(PN->getOperand(0));
PN->eraseFromParent();
}
// FIXME: Should update dominator analyses
// Now that everything is up-to-date that will be, we fold the loop block into
// the preheader and exit block, updating our analyses as we go.
LoopExit->getInstList().splice(LoopExit->begin(), BB->getInstList(),