mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-22 23:24:59 +00:00
Fix bug in previous checkin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14146 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -638,6 +638,9 @@ void FPS::handleCompareFP(MachineBasicBlock::iterator &I) {
|
|||||||
// anywhere.
|
// anywhere.
|
||||||
moveToTop(Op0, I);
|
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 any of the operands are killed by this instruction, free them.
|
||||||
if (KillsOp0) freeStackSlotAfter(I, Op0);
|
if (KillsOp0) freeStackSlotAfter(I, Op0);
|
||||||
if (KillsOp1 && Op0 != Op1) freeStackSlotAfter(I, Op1);
|
if (KillsOp1 && Op0 != Op1) freeStackSlotAfter(I, Op1);
|
||||||
|
@@ -638,6 +638,9 @@ void FPS::handleCompareFP(MachineBasicBlock::iterator &I) {
|
|||||||
// anywhere.
|
// anywhere.
|
||||||
moveToTop(Op0, I);
|
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 any of the operands are killed by this instruction, free them.
|
||||||
if (KillsOp0) freeStackSlotAfter(I, Op0);
|
if (KillsOp0) freeStackSlotAfter(I, Op0);
|
||||||
if (KillsOp1 && Op0 != Op1) freeStackSlotAfter(I, Op1);
|
if (KillsOp1 && Op0 != Op1) freeStackSlotAfter(I, Op1);
|
||||||
|
Reference in New Issue
Block a user