From 164cc2781fb1b732ce88fc1c05a667b7d3d558f7 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Sun, 3 Oct 2021 18:38:47 +0100 Subject: [PATCH] [X86] Split Cannonlake + Icelake Tuning. NFC The Ice/Tiger/RocketLake specs were inheriting the tuning settings from CannonLake, a previous architecture. We shouldn't have this dependency, so I've copied the current tuning settings so we can make future adjustments to both CNL + ICL etc. more easily. --- llvm/lib/Target/X86/X86.td | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/llvm/lib/Target/X86/X86.td b/llvm/lib/Target/X86/X86.td index 779a162..2d7d4dd 100644 --- a/llvm/lib/Target/X86/X86.td +++ b/llvm/lib/Target/X86/X86.td @@ -803,7 +803,18 @@ def ProcessorFeatures { FeatureGFNI, FeatureRDPID, FeatureFSRM]; - list ICLTuning = CNLTuning; + list ICLTuning = [TuningFastGather, + TuningMacroFusion, + TuningSlow3OpsLEA, + TuningSlowDivide64, + TuningFastScalarFSQRT, + TuningFastVectorFSQRT, + TuningFastSHLDRotate, + TuningFast15ByteNOP, + TuningFastVariableCrossLaneShuffle, + TuningFastVariablePerLaneShuffle, + TuningPrefer256Bit, + TuningInsertVZEROUPPER]; list ICLFeatures = !listconcat(CNLFeatures, ICLAdditionalFeatures); @@ -811,7 +822,7 @@ def ProcessorFeatures { list ICXAdditionalFeatures = [FeaturePCONFIG, FeatureCLWB, FeatureWBNOINVD]; - list ICXTuning = CNLTuning; + list ICXTuning = ICLTuning; list ICXFeatures = !listconcat(ICLFeatures, ICXAdditionalFeatures); @@ -821,7 +832,7 @@ def ProcessorFeatures { FeatureMOVDIRI, FeatureMOVDIR64B, FeatureSHSTK]; - list TGLTuning = CNLTuning; + list TGLTuning = ICLTuning; list TGLFeatures = !listconcat(ICLFeatures, TGLAdditionalFeatures ); -- 2.7.4