mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-11 11:34:02 +00:00
Update comments to reflect reality.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139023 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d2990107a9
commit
9dc31e8705
@ -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))
|
||||
|
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user