[PATCH] D41671: [X86] Remove useless custom inserter for 64-bit TAILJMP and TCRETURN opcodes
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 2 11:04:49 PST 2018
craig.topper created this revision.
craig.topper added reviewers: RKSimon, zvi, spatel.
This custom inserter was added in r124272 at which time it added about bunch of Defs for Win64. In r150708, those defs were removed leaving only the "return BB". So I think this means the custom inserter is a NOP these days.
This patch removes the remaining code and stops tagging the instructions for custom insertion
https://reviews.llvm.org/D41671
Files:
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86InstrControl.td
Index: lib/Target/X86/X86InstrControl.td
===================================================================
--- lib/Target/X86/X86InstrControl.td
+++ lib/Target/X86/X86InstrControl.td
@@ -309,8 +309,7 @@
}
let isCall = 1, isTerminator = 1, isReturn = 1, isBarrier = 1,
- isCodeGenOnly = 1, Uses = [RSP, SSP], usesCustomInserter = 1,
- SchedRW = [WriteJump] in {
+ isCodeGenOnly = 1, Uses = [RSP, SSP], SchedRW = [WriteJump] in {
def TCRETURNdi64 : PseudoI<(outs),
(ins i64i32imm_pcrel:$dst, i32imm:$offset),
[]>;
Index: lib/Target/X86/X86ISelLowering.cpp
===================================================================
--- lib/Target/X86/X86ISelLowering.cpp
+++ lib/Target/X86/X86ISelLowering.cpp
@@ -27551,16 +27551,6 @@
switch (MI.getOpcode()) {
default: llvm_unreachable("Unexpected instr type to insert");
- case X86::TAILJMPd64:
- case X86::TAILJMPr64:
- case X86::TAILJMPm64:
- case X86::TAILJMPr64_REX:
- case X86::TAILJMPm64_REX:
- llvm_unreachable("TAILJMP64 would not be touched here.");
- case X86::TCRETURNdi64:
- case X86::TCRETURNri64:
- case X86::TCRETURNmi64:
- return BB;
case X86::TLS_addr32:
case X86::TLS_addr64:
case X86::TLS_base_addr32:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41671.128434.patch
Type: text/x-patch
Size: 1264 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180102/359cb6a4/attachment.bin>
More information about the llvm-commits
mailing list