mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +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:
parent
899dbdcdb0
commit
57790422ca
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user