diff options
Diffstat (limited to 'llvm/lib/Transforms/Scalar/SCCP.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/SCCP.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/SCCP.cpp b/llvm/lib/Transforms/Scalar/SCCP.cpp index 4ac5b2f9103..0091a3df7d7 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<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)) |