mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-11 21:57:55 +00:00
Bugfix to work with the two-addr changes that have been made in the tree recently
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30121 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c39d194499
commit
6cdb1ea610
@ -752,7 +752,7 @@ void FPS::handleCondMovFP(MachineBasicBlock::iterator &I) {
|
||||
MachineInstr *MI = I;
|
||||
|
||||
unsigned Op0 = getFPReg(MI->getOperand(0));
|
||||
unsigned Op1 = getFPReg(MI->getOperand(1));
|
||||
unsigned Op1 = getFPReg(MI->getOperand(2));
|
||||
|
||||
// The first operand *must* be on the top of the stack.
|
||||
moveToTop(Op0, I);
|
||||
@ -760,6 +760,7 @@ void FPS::handleCondMovFP(MachineBasicBlock::iterator &I) {
|
||||
// Change the second operand to the stack register that the operand is in.
|
||||
// Change from the pseudo instruction to the concrete instruction.
|
||||
MI->RemoveOperand(0);
|
||||
MI->RemoveOperand(1);
|
||||
MI->getOperand(0).setReg(getSTReg(Op1));
|
||||
MI->setOpcode(getConcreteOpcode(MI->getOpcode()));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user