mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-17 18:31:04 +00:00
The form of BuildMI used for TAILJMPr was changing the register
containing the target address, an input, into an output. I don't think this actually broke anything on x86 (it does on ARM), but it's wrong. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105986 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
400c95fe38
commit
4b559f070a
@ -1279,9 +1279,11 @@ void X86RegisterInfo::emitEpilogue(MachineFunction &MF,
|
|||||||
for (unsigned i = 0; i != 5; ++i)
|
for (unsigned i = 0; i != 5; ++i)
|
||||||
MIB.addOperand(MBBI->getOperand(i));
|
MIB.addOperand(MBBI->getOperand(i));
|
||||||
} else if (RetOpcode == X86::TCRETURNri64) {
|
} else if (RetOpcode == X86::TCRETURNri64) {
|
||||||
BuildMI(MBB, MBBI, DL, TII.get(X86::TAILJMPr64), JumpTarget.getReg());
|
BuildMI(MBB, MBBI, DL, TII.get(X86::TAILJMPr64)).
|
||||||
|
addReg(JumpTarget.getReg(), JumpTarget.getTargetFlags());
|
||||||
} else {
|
} else {
|
||||||
BuildMI(MBB, MBBI, DL, TII.get(X86::TAILJMPr), JumpTarget.getReg());
|
BuildMI(MBB, MBBI, DL, TII.get(X86::TAILJMPr)).
|
||||||
|
addReg(JumpTarget.getReg(), JumpTarget.getTargetFlags());
|
||||||
}
|
}
|
||||||
|
|
||||||
MachineInstr *NewMI = prior(MBBI);
|
MachineInstr *NewMI = prior(MBBI);
|
||||||
|
Loading…
Reference in New Issue
Block a user