From c8e81a2dadb31d756f562950893ea3fc1a852dfe Mon Sep 17 00:00:00 2001 From: kd-11 Date: Sat, 3 Aug 2024 05:27:58 +0300 Subject: [PATCH] Return zen4 for zen5+ until LLVM upgrade --- Utilities/JITLLVM.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Utilities/JITLLVM.cpp b/Utilities/JITLLVM.cpp index 10e4174072..f42245c3d7 100644 --- a/Utilities/JITLLVM.cpp +++ b/Utilities/JITLLVM.cpp @@ -745,10 +745,11 @@ llvm::StringRef fallback_cpu_detection() ? "znver3" : "znver4"; case 0x1a: - // Only one generation in family 1a so far - return "znver5"; + // Only one generation in family 1a so far, zen5, which we do not support yet. + // Return zen4 as a workaround until the next LLVM upgrade. + return "znver4"; default: - return "znver5"; // Return newest known model here + return "znver4"; // Return newest known model here } } else if (brand.contains("Intel"))