mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01: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. llvm-svn: 105986
This commit is contained in:
parent
739bfe2577
commit
16d277a32b
@ -1279,9 +1279,11 @@ void X86RegisterInfo::emitEpilogue(MachineFunction &MF,
|
||||
for (unsigned i = 0; i != 5; ++i)
|
||||
MIB.addOperand(MBBI->getOperand(i));
|
||||
} 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 {
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user