mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-14 23:29:51 +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. llvm-svn: 18734
This commit is contained in:
parent
30fe6bfd91
commit
999a5ba9ba
@ -92,11 +92,13 @@ bool FPMover::runOnMachineBasicBlock (MachineBasicBlock &MBB) {
|
||||
DEBUG (std::cerr << "FPMover: new dest reg. is " << NewDestReg1
|
||||
<< "; inserted instr is: " << *MI2);
|
||||
++NumFpMOVDs;
|
||||
I = J;
|
||||
--I;
|
||||
} else {
|
||||
MBB.erase (I);
|
||||
++SkippedFpMOVDs;
|
||||
I = J;
|
||||
}
|
||||
I = J;
|
||||
Changed = true;
|
||||
}
|
||||
return Changed;
|
||||
|
Loading…
Reference in New Issue
Block a user