[llvm] 89e4cb6 - [X86] Add missing (unsupported) zmm vector move classes

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 16 07:31:44 PDT 2022


Author: Simon Pilgrim
Date: 2022-09-16T15:31:26+01:00
New Revision: 89e4cb603d96dcb962ec76aa5e91d6ce86ffe63b

URL: https://github.com/llvm/llvm-project/commit/89e4cb603d96dcb962ec76aa5e91d6ce86ffe63b
DIFF: https://github.com/llvm/llvm-project/commit/89e4cb603d96dcb962ec76aa5e91d6ce86ffe63b.diff

LOG: [X86] Add missing (unsupported) zmm vector move classes

Although unsupported on HSW, we reuse this model for KNL which does require them

Noticed when running the cost model fuzz script from D103695 with -mcpu=knl

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/X86/X86SchedHaswell.td b/llvm/lib/Target/X86/X86SchedHaswell.td
index 7b1a31d2a4df1..f6d53587b4598 100644
--- a/llvm/lib/Target/X86/X86SchedHaswell.td
+++ b/llvm/lib/Target/X86/X86SchedHaswell.td
@@ -257,7 +257,7 @@ defm : X86WriteRes<WriteFMaskedStore64Y, [HWPort0,HWPort4,HWPort237,HWPort15], 5
 defm : X86WriteRes<WriteFMove,         [HWPort5], 1, [1], 1>;
 defm : X86WriteRes<WriteFMoveX,        [HWPort5], 1, [1], 1>;
 defm : X86WriteRes<WriteFMoveY,        [HWPort5], 1, [1], 1>;
-defm : X86WriteResUnsupported<WriteFMoveZ>;
+defm : X86WriteRes<WriteFMoveZ,        [HWPort5], 1, [1], 1>; // Unsupported = 1
 defm : X86WriteRes<WriteEMMS,          [HWPort01,HWPort15,HWPort015,HWPort0156], 31, [8,1,21,1], 31>;
 
 defm : HWWriteResPair<WriteFAdd,    [HWPort1],  3, [1], 1, 5>;
@@ -417,7 +417,7 @@ defm : X86WriteRes<WriteVecMaskedStore64Y, [HWPort0,HWPort4,HWPort237,HWPort15],
 defm : X86WriteRes<WriteVecMove,         [HWPort015], 1, [1], 1>;
 defm : X86WriteRes<WriteVecMoveX,        [HWPort015], 1, [1], 1>;
 defm : X86WriteRes<WriteVecMoveY,        [HWPort015], 1, [1], 1>;
-defm : X86WriteResUnsupported<WriteVecMoveZ>;
+defm : X86WriteRes<WriteVecMoveZ,        [HWPort015], 1, [1], 1>; // Unsupported = 1
 defm : X86WriteRes<WriteVecMoveToGpr,    [HWPort0], 1, [1], 1>;
 defm : X86WriteRes<WriteVecMoveFromGpr,  [HWPort5], 1, [1], 1>;
 


        


More information about the llvm-commits mailing list