diff --git a/llvm/lib/Target/X86/X86.td b/llvm/lib/Target/X86/X86.td index 27ec052cfda40..ee1953ece87ba 100644 --- a/llvm/lib/Target/X86/X86.td +++ b/llvm/lib/Target/X86/X86.td @@ -1177,6 +1177,7 @@ def ProcessorFeatures { FeatureAMXTF32]; list DMRFeatures = !listconcat(GNRDFeatures, DMRAdditionalFeatures); + list DMRTuning = !listremove(GNRTuning, [TuningPrefer256Bit]); // Atom list AtomFeatures = [FeatureX87, @@ -1346,6 +1347,7 @@ def ProcessorFeatures { FeaturePREFETCHI]; list NVLFeatures = !listconcat(PTLFeatures, NVLAdditionalFeatures); + list NVLTuning = !listremove(ADLTuning, [TuningPrefer256Bit]); // Clearwaterforest list CWFAdditionalFeatures = [FeaturePREFETCHI, @@ -1893,7 +1895,7 @@ def : ProcModel; } def : ProcModel<"novalake", AlderlakePModel, ProcessorFeatures.NVLFeatures, - ProcessorFeatures.ADLTuning>; + ProcessorFeatures.NVLTuning>; def : ProcModel<"clearwaterforest", AlderlakePModel, ProcessorFeatures.CWFFeatures, ProcessorFeatures.ADLTuning>; @@ -1906,7 +1908,7 @@ def : ProcModel; } def : ProcModel<"diamondrapids", SapphireRapidsModel, - ProcessorFeatures.DMRFeatures, ProcessorFeatures.GNRTuning>; + ProcessorFeatures.DMRFeatures, ProcessorFeatures.DMRTuning>; // AMD CPUs.