Update comments to reflect reality.
authorBill Wendling <isanbard@gmail.com>
Fri, 2 Sep 2011 18:43:33 +0000 (18:43 +0000)
committerBill Wendling <isanbard@gmail.com>
Fri, 2 Sep 2011 18:43:33 +0000 (18:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139023 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/InstCombine/InstructionCombining.cpp
lib/Transforms/Scalar/SCCP.cpp

index d9646588d51d20787faa0845ab5c144e965b7531..51fe2e5a4119802be8f37ee360483f437a795ee5 100644 (file)
@@ -1574,8 +1574,7 @@ bool InstCombiner::DoOneIteration(Function &F, unsigned Iteration) {
     for (Function::iterator BB = F.begin(), E = F.end(); BB != E; ++BB) {
       if (Visited.count(BB)) continue;
 
-      // Delete the instructions backwards, as it has a reduced likelihood of
-      // having to update as many def-use and use-def chains.
+      // Delete the instructions.
       for (BasicBlock::iterator I = BB->begin(), E = BB->end(); I != E; ) {
         Instruction *Inst = &*I++;
         if (isa<TerminatorInst>(Inst))
index 4ac5b2f9103fdffc0538df4b1e22319de8fc7ae7..0091a3df7d723ac1061d7ad20d2917ffb0405017 100644 (file)
@@ -1686,8 +1686,7 @@ static void DeleteInstructionInBlock(BasicBlock *BB) {
   if (isa<TerminatorInst>(BB->begin()))
     return;
 
-  // Delete the instructions backwards, as it has a reduced likelihood of
-  // having to update as many def-use and use-def chains.
+  // Delete the instructions.
   for (BasicBlock::iterator I = BB->begin(), E = BB->end(); I != E; ) {
     Instruction *Inst = &*I++;
     if (isa<TerminatorInst>(Inst))