LLVM: handle icelake-client and icelake-server CPU names
Correct AVX / AVX-512 disabling logic
This commit is contained in:
+6
-2
@@ -625,7 +625,9 @@ std::string jit_compiler::cpu(const std::string& _cpu)
|
|||||||
m_cpu == "skylake" ||
|
m_cpu == "skylake" ||
|
||||||
m_cpu == "skylake-avx512" ||
|
m_cpu == "skylake-avx512" ||
|
||||||
m_cpu == "cannonlake" ||
|
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
|
// Downgrade if AVX is not supported by some chips
|
||||||
if (!utils::has_avx())
|
if (!utils::has_avx())
|
||||||
@@ -636,7 +638,9 @@ std::string jit_compiler::cpu(const std::string& _cpu)
|
|||||||
|
|
||||||
if (m_cpu == "skylake-avx512" ||
|
if (m_cpu == "skylake-avx512" ||
|
||||||
m_cpu == "cannonlake" ||
|
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
|
// Downgrade if AVX-512 is disabled or not supported
|
||||||
if (!utils::has_512())
|
if (!utils::has_512())
|
||||||
|
|||||||
Reference in New Issue
Block a user