[compiler-rt] [llvm] [X86] Fix typo of gracemont (PR #118486)

Phoebe Wang via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 3 04:56:40 PST 2024


https://github.com/phoebewang created https://github.com/llvm/llvm-project/pull/118486

None

>From 2b04a444c19f09f3f21a97c254b2d8d9c603c812 Mon Sep 17 00:00:00 2001
From: "Wang, Phoebe" <phoebe.wang at intel.com>
Date: Tue, 3 Dec 2024 20:55:45 +0800
Subject: [PATCH] [X86] Fix typo of gracemont

---
 compiler-rt/lib/builtins/cpu_model/x86.c | 2 +-
 llvm/lib/TargetParser/Host.cpp           | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/compiler-rt/lib/builtins/cpu_model/x86.c b/compiler-rt/lib/builtins/cpu_model/x86.c
index f9b95d2faf06ae..606571d5275013 100644
--- a/compiler-rt/lib/builtins/cpu_model/x86.c
+++ b/compiler-rt/lib/builtins/cpu_model/x86.c
@@ -485,7 +485,7 @@ static const char *getIntelProcessorTypeAndSubtype(unsigned Family,
 
     // Gracemont:
     case 0xbe:
-      CPU = "gracement";
+      CPU = "gracemont";
       *Type = INTEL_COREI7;
       *Subtype = INTEL_COREI7_ALDERLAKE;
       break;
diff --git a/llvm/lib/TargetParser/Host.cpp b/llvm/lib/TargetParser/Host.cpp
index 4457e481def10a..cd5a678d161b7d 100644
--- a/llvm/lib/TargetParser/Host.cpp
+++ b/llvm/lib/TargetParser/Host.cpp
@@ -815,7 +815,7 @@ static StringRef getIntelProcessorTypeAndSubtype(unsigned Family,
 
     // Gracemont
     case 0xbe:
-      CPU = "gracement";
+      CPU = "gracemont";
       *Type = X86::INTEL_COREI7;
       *Subtype = X86::INTEL_COREI7_ALDERLAKE;
       break;



More information about the llvm-commits mailing list