[llvm] 0db9723 - [X86] Remove usesCustomInserter from MWAITX_SAVE_EBX and MWAITX_SAVE_RBX. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 4 15:29:10 PDT 2020


Author: Craig Topper
Date: 2020-10-04T15:28:38-07:00
New Revision: 0db97234cf490e464c82f2191fef2d8a163106fb

URL: https://github.com/llvm/llvm-project/commit/0db97234cf490e464c82f2191fef2d8a163106fb
DIFF: https://github.com/llvm/llvm-project/commit/0db97234cf490e464c82f2191fef2d8a163106fb.diff

LOG: [X86] Remove usesCustomInserter from MWAITX_SAVE_EBX and MWAITX_SAVE_RBX. NFC

These are now emitted by a CustomInserter rather than using a custom
inserter themselves.

Added: 
    

Modified: 
    llvm/lib/Target/X86/X86InstrCompiler.td

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/X86/X86InstrCompiler.td b/llvm/lib/Target/X86/X86InstrCompiler.td
index 9e6a5fb934de..32686659700d 100644
--- a/llvm/lib/Target/X86/X86InstrCompiler.td
+++ b/llvm/lib/Target/X86/X86InstrCompiler.td
@@ -901,8 +901,7 @@ def LCMPXCHG16B_SAVE_RBX :
 // cf comment for LCMPXCHG8B_SAVE_EBX.
 let Defs = [ECX, EAX, EBX, EFLAGS], Uses = [ECX, EAX, EBX],
     Predicates = [HasMWAITX], SchedRW = [WriteSystem],
-    isCodeGenOnly = 1, isPseudo = 1, Constraints = "$ebx_save = $dst",
-    usesCustomInserter = 1 in {
+    isCodeGenOnly = 1, isPseudo = 1, Constraints = "$ebx_save = $dst" in {
 def MWAITX_SAVE_EBX :
     I<0, Pseudo, (outs GR32:$dst),
       (ins GR32:$ebx_input, GR32:$ebx_save),
@@ -912,8 +911,7 @@ def MWAITX_SAVE_EBX :
 // Same as MWAITX_SAVE_EBX but for the case where RBX is the base pointer.
 let Defs = [ECX, EAX, EBX, EFLAGS], Uses = [ECX, EAX, EBX],
     Predicates = [HasMWAITX], SchedRW = [WriteSystem],
-    isCodeGenOnly = 1, isPseudo = 1, Constraints = "$rbx_save = $dst",
-    usesCustomInserter = 1 in {
+    isCodeGenOnly = 1, isPseudo = 1, Constraints = "$rbx_save = $dst" in {
 def MWAITX_SAVE_RBX :
     I<0, Pseudo, (outs GR64:$dst),
       (ins GR32:$ebx_input, GR64:$rbx_save),


        


More information about the llvm-commits mailing list