Fix bug in previous checkin

llvm-svn: 14146
This commit is contained in:
Chris Lattner 2004-06-11 05:22:44 +00:00
parent 7d8093efb1
commit f78e3e7f63

View File

@ -638,6 +638,9 @@ void FPS::handleCompareFP(MachineBasicBlock::iterator &I) {
// anywhere.
moveToTop(Op0, I);
MI->getOperand(0).setReg(getSTReg(Op1));
MI->RemoveOperand(1);
// If any of the operands are killed by this instruction, free them.
if (KillsOp0) freeStackSlotAfter(I, Op0);
if (KillsOp1 && Op0 != Op1) freeStackSlotAfter(I, Op1);