r308546 - [X86] Put avx512vpopcntdq in the right spot in the validateCpuSupports string switch.

Craig Topper via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 19 15:58:58 PDT 2017


Author: ctopper
Date: Wed Jul 19 15:58:58 2017
New Revision: 308546

URL: http://llvm.org/viewvc/llvm-project?rev=308546&view=rev
Log:
[X86] Put avx512vpopcntdq in the right spot in the validateCpuSupports string switch.

The validateCpuSupports switch is in the order of the enum defined in CGBuiltin.cpp and libgcc/compiler-rt.

Modified:
    cfe/trunk/lib/Basic/Targets.cpp

Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=308546&r1=308545&r2=308546&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Wed Jul 19 15:58:58 2017
@@ -4414,11 +4414,11 @@ bool X86TargetInfo::validateCpuSupports(
       .Case("avx512bw", true)
       .Case("avx512dq", true)
       .Case("avx512cd", true)
-      .Case("avx512vpopcntdq", true)
       .Case("avx512er", true)
       .Case("avx512pf", true)
       .Case("avx512vbmi", true)
       .Case("avx512ifma", true)
+      .Case("avx512vpopcntdq", true)
       .Default(false);
 }
 




More information about the cfe-commits mailing list