[llvm] [X86] Fix tuning for emeraldrapids (PR #98123)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 9 00:40:25 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-backend-x86

Author: Feng Zou (fzou1)

<details>
<summary>Changes</summary>

The incorrect tuning is introduced by #<!-- -->97721.

---
Full diff: https://github.com/llvm/llvm-project/pull/98123.diff


1 Files Affected:

- (modified) llvm/lib/Target/X86/X86.td (+2-2) 


``````````diff
diff --git a/llvm/lib/Target/X86/X86.td b/llvm/lib/Target/X86/X86.td
index fdd7d5f1ee0e7..8cb003b838d06 100644
--- a/llvm/lib/Target/X86/X86.td
+++ b/llvm/lib/Target/X86/X86.td
@@ -1821,10 +1821,10 @@ def : ProcModel<"pantherlake", AlderlakePModel,
                 ProcessorFeatures.PTLFeatures, ProcessorFeatures.ADLTuning>;
 def : ProcModel<"clearwaterforest", AlderlakePModel,
                 ProcessorFeatures.CWFFeatures, ProcessorFeatures.ADLTuning>;
+def : ProcModel<"emeraldrapids", SapphireRapidsModel,
+                ProcessorFeatures.SPRFeatures, ProcessorFeatures.SPRTuning>;
 def : ProcModel<"graniterapids", SapphireRapidsModel,
                 ProcessorFeatures.GNRFeatures, ProcessorFeatures.GNRTuning>;
-def : ProcModel<"emeraldrapids", SapphireRapidsModel,
-                ProcessorFeatures.SPRFeatures, ProcessorFeatures.GNRTuning>;
 foreach P = ["graniterapids-d", "graniterapids_d"] in {
 def : ProcModel<P, SapphireRapidsModel,
                 ProcessorFeatures.GNRDFeatures, ProcessorFeatures.GNRTuning>;

``````````

</details>


https://github.com/llvm/llvm-project/pull/98123


More information about the llvm-commits mailing list