diff options
author | Dale Johannesen <dalej@apple.com> | 2010-06-15 21:36:43 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2010-06-15 21:36:43 +0000 |
commit | bf37850e4289308c7d74d720b1d9556c99b6719d (patch) | |
tree | b651aa68ce2e09381c076c13d51d72018ce54d60 /lib/Target/X86/X86RegisterInfo.cpp | |
parent | 381cd02688c5e4b026760166fb547276af8499be (diff) | |
download | external_llvm-bf37850e4289308c7d74d720b1d9556c99b6719d.zip external_llvm-bf37850e4289308c7d74d720b1d9556c99b6719d.tar.gz external_llvm-bf37850e4289308c7d74d720b1d9556c99b6719d.tar.bz2 |
Reapply 105986 with fix for bug pointed out by Jakob:
flag argument to addReg is not the same format as flags attached
to MachineOperand, although both have the same info. I don't
think this actually mattered; the bootstrap failure did not
reproduce on the next run anyway.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106049 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86RegisterInfo.cpp')
-rw-r--r-- | lib/Target/X86/X86RegisterInfo.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Target/X86/X86RegisterInfo.cpp b/lib/Target/X86/X86RegisterInfo.cpp index e74db6d..f33ee7f 100644 --- a/lib/Target/X86/X86RegisterInfo.cpp +++ b/lib/Target/X86/X86RegisterInfo.cpp @@ -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(), RegState::Kill); } else { - BuildMI(MBB, MBBI, DL, TII.get(X86::TAILJMPr), JumpTarget.getReg()); + BuildMI(MBB, MBBI, DL, TII.get(X86::TAILJMPr)). + addReg(JumpTarget.getReg(), RegState::Kill); } MachineInstr *NewMI = prior(MBBI); |