[PATCH] D49611: [X86] Improved sched models for X86 SHLD/SHRD* instructions

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 20 13:36:26 PDT 2018


RKSimon added inline comments.


================
Comment at: lib/Target/X86/X86SchedBroadwell.td:109
+// SHLD/SHRD
+def : WriteRes<WriteSHDrri, [BWPort1]> {
+  let Latency = 3;
----------------
You should be able to use the X86WriteRes multiclass for all of these (in all models)


================
Comment at: lib/Target/X86/X86SchedBroadwell.td:1340
+//def: InstRW<[BWWriteResGroup111], (instregex "SHLD(16|32|64)mri8",
+//                                             "SHRD(16|32|64)mri8")>;
 
----------------
Don't leave commented out entries


================
Comment at: lib/Target/X86/X86ScheduleSLM.td:107
+  let NumMicroOps = 2;
+}
+
----------------
Can you fix the test changes?


================
Comment at: lib/Target/X86/X86ScheduleZnver1.td:179
+def : WriteRes<WriteSHDmri,    [ZnALU]>; // not used
+def : WriteRes<WriteSHDmrc,    [ZnALU]>; // not used
+
----------------
Why not used like the other models?


https://reviews.llvm.org/D49611





More information about the llvm-commits mailing list