diff --git a/lib/Target/SparcV8/FPMover.cpp b/lib/Target/SparcV8/FPMover.cpp index 6450f47f257..49298c225b5 100644 --- a/lib/Target/SparcV8/FPMover.cpp +++ b/lib/Target/SparcV8/FPMover.cpp @@ -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;