From a336e70573802d8d1a6921c4ead55e0322188c49 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Fri, 2 Sep 2011 18:43:33 +0000 Subject: [PATCH] Update comments to reflect reality. llvm-svn: 139023 --- llvm/lib/Transforms/InstCombine/InstructionCombining.cpp | 3 +-- llvm/lib/Transforms/Scalar/SCCP.cpp | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp index d9646588d51d..51fe2e5a4119 100644 --- a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp +++ b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp @@ -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(Inst)) diff --git a/llvm/lib/Transforms/Scalar/SCCP.cpp b/llvm/lib/Transforms/Scalar/SCCP.cpp index 4ac5b2f9103f..0091a3df7d72 100644 --- a/llvm/lib/Transforms/Scalar/SCCP.cpp +++ b/llvm/lib/Transforms/Scalar/SCCP.cpp @@ -1686,8 +1686,7 @@ static void DeleteInstructionInBlock(BasicBlock *BB) { if (isa(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(Inst))