[llvm] 814267e - [X86] Remove unnecessary overrides for CBW/CWDE/CDQE/CMC instructions

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 14 07:12:02 PST 2022


Author: Simon Pilgrim
Date: 2022-11-14T15:11:35Z
New Revision: 814267e3ee112b6acfe85f7742575a4e2a2e46a6

URL: https://github.com/llvm/llvm-project/commit/814267e3ee112b6acfe85f7742575a4e2a2e46a6
DIFF: https://github.com/llvm/llvm-project/commit/814267e3ee112b6acfe85f7742575a4e2a2e46a6.diff

LOG: [X86] Remove unnecessary overrides for CBW/CWDE/CDQE/CMC instructions

All of these match the default WriteALU schedule

Added: 
    

Modified: 
    llvm/lib/Target/X86/X86SchedHaswell.td
    llvm/lib/Target/X86/X86SchedIceLake.td
    llvm/lib/Target/X86/X86SchedSkylakeClient.td
    llvm/lib/Target/X86/X86SchedSkylakeServer.td

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/X86/X86SchedHaswell.td b/llvm/lib/Target/X86/X86SchedHaswell.td
index 5f47a7d9e26e5..2cc479bc220f0 100644
--- a/llvm/lib/Target/X86/X86SchedHaswell.td
+++ b/llvm/lib/Target/X86/X86SchedHaswell.td
@@ -957,8 +957,7 @@ def HWWriteResGroup10 : SchedWriteRes<[HWPort0156]> {
   let NumMicroOps = 1;
   let ResourceCycles = [1];
 }
-def: InstRW<[HWWriteResGroup10], (instrs CBW, CWDE, CDQE,
-                                         CMC, STC,
+def: InstRW<[HWWriteResGroup10], (instrs STC,
                                          SGDT64m,
                                          SIDT64m,
                                          SMSW16m,

diff  --git a/llvm/lib/Target/X86/X86SchedIceLake.td b/llvm/lib/Target/X86/X86SchedIceLake.td
index d6ca00fca86ae..ce9e2548f4575 100644
--- a/llvm/lib/Target/X86/X86SchedIceLake.td
+++ b/llvm/lib/Target/X86/X86SchedIceLake.td
@@ -727,8 +727,7 @@ def ICXWriteResGroup10 : SchedWriteRes<[ICXPort0156]> {
   let NumMicroOps = 1;
   let ResourceCycles = [1];
 }
-def: InstRW<[ICXWriteResGroup10], (instrs CBW, CWDE, CDQE,
-                                          CMC, STC,
+def: InstRW<[ICXWriteResGroup10], (instrs STC,
                                           SGDT64m,
                                           SIDT64m,
                                           SMSW16m,

diff  --git a/llvm/lib/Target/X86/X86SchedSkylakeClient.td b/llvm/lib/Target/X86/X86SchedSkylakeClient.td
index a054fb0134a9b..e6d7a46a97f70 100644
--- a/llvm/lib/Target/X86/X86SchedSkylakeClient.td
+++ b/llvm/lib/Target/X86/X86SchedSkylakeClient.td
@@ -689,8 +689,7 @@ def SKLWriteResGroup10 : SchedWriteRes<[SKLPort0156]> {
   let NumMicroOps = 1;
   let ResourceCycles = [1];
 }
-def: InstRW<[SKLWriteResGroup10], (instrs CBW, CWDE, CDQE,
-                                          CMC, STC,
+def: InstRW<[SKLWriteResGroup10], (instrs STC,
                                           SGDT64m,
                                           SIDT64m,
                                           SMSW16m,

diff  --git a/llvm/lib/Target/X86/X86SchedSkylakeServer.td b/llvm/lib/Target/X86/X86SchedSkylakeServer.td
index 9343423179147..c4b5ebe813faa 100644
--- a/llvm/lib/Target/X86/X86SchedSkylakeServer.td
+++ b/llvm/lib/Target/X86/X86SchedSkylakeServer.td
@@ -709,8 +709,7 @@ def SKXWriteResGroup10 : SchedWriteRes<[SKXPort0156]> {
   let NumMicroOps = 1;
   let ResourceCycles = [1];
 }
-def: InstRW<[SKXWriteResGroup10], (instrs CBW, CWDE, CDQE,
-                                          CMC, STC,
+def: InstRW<[SKXWriteResGroup10], (instrs STC,
                                           SGDT64m,
                                           SIDT64m,
                                           SMSW16m,


        


More information about the llvm-commits mailing list