[PATCH] D49299: [MachineOutliner][X86] Use TAILJMPd64 instead of JMP_1 for TailCall construction
Francis Visoiu Mistrih via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 30 02:59:52 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL338237: [MachineOutliner][X86] Use TAILJMPd64 instead of JMP_1 for TailCall construction (authored by thegameg, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D49299?vs=155399&id=157933#toc
Repository:
rL LLVM
https://reviews.llvm.org/D49299
Files:
llvm/trunk/lib/Target/X86/X86InstrInfo.cpp
llvm/trunk/test/CodeGen/X86/machine-outliner-tailcalls.ll
Index: llvm/trunk/lib/Target/X86/X86InstrInfo.cpp
===================================================================
--- llvm/trunk/lib/Target/X86/X86InstrInfo.cpp
+++ llvm/trunk/lib/Target/X86/X86InstrInfo.cpp
@@ -7725,7 +7725,7 @@
if (C.CallConstructionID == MachineOutlinerTailCall) {
// Yes, just insert a JMP.
It = MBB.insert(It,
- BuildMI(MF, DebugLoc(), get(X86::JMP_1))
+ BuildMI(MF, DebugLoc(), get(X86::TAILJMPd64))
.addGlobalAddress(M.getNamedValue(MF.getName())));
} else {
// No, insert a call.
Index: llvm/trunk/test/CodeGen/X86/machine-outliner-tailcalls.ll
===================================================================
--- llvm/trunk/test/CodeGen/X86/machine-outliner-tailcalls.ll
+++ llvm/trunk/test/CodeGen/X86/machine-outliner-tailcalls.ll
@@ -1,4 +1,4 @@
-; RUN: llc -enable-machine-outliner -mtriple=x86_64-apple-darwin < %s | FileCheck %s
+; RUN: llc -verify-machineinstrs -enable-machine-outliner -mtriple=x86_64-apple-darwin < %s | FileCheck %s
@x = common local_unnamed_addr global i32 0, align 4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49299.157933.patch
Type: text/x-patch
Size: 1112 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180730/a7911a2f/attachment.bin>
More information about the llvm-commits
mailing list