[llvm] r318634 - [X86] clzero check in getHostCPUFeatures should use getX86CpuIDAndInfo not getX86CpuIDAndInfoEx.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 19 15:49:19 PST 2017
Author: ctopper
Date: Sun Nov 19 15:49:19 2017
New Revision: 318634
URL: http://llvm.org/viewvc/llvm-project?rev=318634&view=rev
Log:
[X86] clzero check in getHostCPUFeatures should use getX86CpuIDAndInfo not getX86CpuIDAndInfoEx.
This leaf doesn't take an additional argument.
Modified:
llvm/trunk/lib/Support/Host.cpp
Modified: llvm/trunk/lib/Support/Host.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Host.cpp?rev=318634&r1=318633&r2=318634&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Host.cpp (original)
+++ llvm/trunk/lib/Support/Host.cpp Sun Nov 19 15:49:19 2017
@@ -1228,7 +1228,7 @@ bool sys::getHostCPUFeatures(StringMap<b
Features["mwaitx"] = HasExtLeaf1 && ((ECX >> 29) & 1);
bool HasExtLeaf8 = MaxExtLevel >= 0x80000008 &&
- !getX86CpuIDAndInfoEx(0x80000008,0x0, &EAX, &EBX, &ECX, &EDX);
+ !getX86CpuIDAndInfo(0x80000008, &EAX, &EBX, &ECX, &EDX);
Features["clzero"] = HasExtLeaf8 && ((EBX >> 0) & 1);
bool HasLeaf7 =
More information about the llvm-commits
mailing list