diff options
author | Chris Lattner <sabre@nondot.org> | 2006-07-20 19:06:16 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-07-20 19:06:16 +0000 |
commit | ec3c411de861718d3fc15e9f0ea5be5a6e357546 (patch) | |
tree | c4d64fbe5c859f200362360fd12792ab28f4403d /lib/Transforms | |
parent | dc21e16bb4721949f82d7a23e23a39c40db14cdf (diff) |
Minor comment tweaks
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29226 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Scalar/LoopUnroll.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/Transforms/Scalar/LoopUnroll.cpp b/lib/Transforms/Scalar/LoopUnroll.cpp index 98b5b62e4b..1dcf78d7c8 100644 --- a/lib/Transforms/Scalar/LoopUnroll.cpp +++ b/lib/Transforms/Scalar/LoopUnroll.cpp @@ -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(), |