From ebb24375d15e96a3c0a7a49a02d1ad6e5832d8e8 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Fri, 1 Mar 2019 00:20:04 +0300 Subject: [PATCH] LLVM: handle icelake-client and icelake-server CPU names Correct AVX / AVX-512 disabling logic --- Utilities/JIT.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Utilities/JIT.cpp b/Utilities/JIT.cpp index bb7606ecf3..72bb231f24 100644 --- a/Utilities/JIT.cpp +++ b/Utilities/JIT.cpp @@ -625,7 +625,9 @@ std::string jit_compiler::cpu(const std::string& _cpu) m_cpu == "skylake" || m_cpu == "skylake-avx512" || m_cpu == "cannonlake" || - m_cpu == "icelake") + m_cpu == "icelake" || + m_cpu == "icelake-client" || + m_cpu == "icelake-server") { // Downgrade if AVX is not supported by some chips if (!utils::has_avx()) @@ -636,7 +638,9 @@ std::string jit_compiler::cpu(const std::string& _cpu) if (m_cpu == "skylake-avx512" || m_cpu == "cannonlake" || - m_cpu == "icelake") + m_cpu == "icelake" || + m_cpu == "icelake-client" || + m_cpu == "icelake-server") { // Downgrade if AVX-512 is disabled or not supported if (!utils::has_512())