diff options
author | Hans Wennborg <hans@hanshq.net> | 2016-09-08 23:35:10 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2016-09-08 23:35:10 +0000 |
commit | c39ef776fcf7360de7ff7b7eb2e63cd3c580dd3b (patch) | |
tree | 0b8e064ab878722e45cd5951edb851b49bdf4c3b /llvm/lib/Target/X86/X86MCInstLower.cpp | |
parent | f205a274c4cdcab2635406471cab9b540aeb3b4a (diff) | |
download | bcm5719-llvm-c39ef776fcf7360de7ff7b7eb2e63cd3c580dd3b.tar.gz bcm5719-llvm-c39ef776fcf7360de7ff7b7eb2e63cd3c580dd3b.zip |
Win64: Don't use REX prefix for direct tail calls
The REX prefix should be used on indirect jmps, but not direct ones.
For direct jumps, the unwinder looks at the offset to determine if
it's inside the current function.
Differential Revision: https://reviews.llvm.org/D24359
llvm-svn: 281003
Diffstat (limited to 'llvm/lib/Target/X86/X86MCInstLower.cpp')
-rw-r--r-- | llvm/lib/Target/X86/X86MCInstLower.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86MCInstLower.cpp b/llvm/lib/Target/X86/X86MCInstLower.cpp index 46197756566..9ce647a8068 100644 --- a/llvm/lib/Target/X86/X86MCInstLower.cpp +++ b/llvm/lib/Target/X86/X86MCInstLower.cpp @@ -1311,7 +1311,6 @@ void X86AsmPrinter::EmitInstruction(const MachineInstr *MI) { case X86::TAILJMPd64: case X86::TAILJMPr64_REX: case X86::TAILJMPm64_REX: - case X86::TAILJMPd64_REX: // Lower these as normal, but add some comments. OutStreamer->AddComment("TAILCALL"); break; |