mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
When FpMOVDs appeared in pairs, we were mistakenly skipping over the latter of
each pair. I think this fixes that. One of these days, I swear I'm going to get the hang of C++ iterators. Really. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18734 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dc0cd0228f
commit
8ee6a2fb16
@ -92,11 +92,13 @@ bool FPMover::runOnMachineBasicBlock (MachineBasicBlock &MBB) {
|
|||||||
DEBUG (std::cerr << "FPMover: new dest reg. is " << NewDestReg1
|
DEBUG (std::cerr << "FPMover: new dest reg. is " << NewDestReg1
|
||||||
<< "; inserted instr is: " << *MI2);
|
<< "; inserted instr is: " << *MI2);
|
||||||
++NumFpMOVDs;
|
++NumFpMOVDs;
|
||||||
|
I = J;
|
||||||
|
--I;
|
||||||
} else {
|
} else {
|
||||||
MBB.erase (I);
|
MBB.erase (I);
|
||||||
++SkippedFpMOVDs;
|
++SkippedFpMOVDs;
|
||||||
|
I = J;
|
||||||
}
|
}
|
||||||
I = J;
|
|
||||||
Changed = true;
|
Changed = true;
|
||||||
}
|
}
|
||||||
return Changed;
|
return Changed;
|
||||||
|
@ -92,11 +92,13 @@ bool FPMover::runOnMachineBasicBlock (MachineBasicBlock &MBB) {
|
|||||||
DEBUG (std::cerr << "FPMover: new dest reg. is " << NewDestReg1
|
DEBUG (std::cerr << "FPMover: new dest reg. is " << NewDestReg1
|
||||||
<< "; inserted instr is: " << *MI2);
|
<< "; inserted instr is: " << *MI2);
|
||||||
++NumFpMOVDs;
|
++NumFpMOVDs;
|
||||||
|
I = J;
|
||||||
|
--I;
|
||||||
} else {
|
} else {
|
||||||
MBB.erase (I);
|
MBB.erase (I);
|
||||||
++SkippedFpMOVDs;
|
++SkippedFpMOVDs;
|
||||||
|
I = J;
|
||||||
}
|
}
|
||||||
I = J;
|
|
||||||
Changed = true;
|
Changed = true;
|
||||||
}
|
}
|
||||||
return Changed;
|
return Changed;
|
||||||
|
Loading…
Reference in New Issue
Block a user