diff options
author | Jeff Cohen <jeffc@jolt-lang.org> | 2007-04-16 21:48:58 +0000 |
---|---|---|
committer | Jeff Cohen <jeffc@jolt-lang.org> | 2007-04-16 21:48:58 +0000 |
commit | 22114c319a58074cc5d0ad60d09e0020db89f127 (patch) | |
tree | 904f7d42a77b18ea7665e66a03db8b7efac9760b /lib/Target | |
parent | 8f9a0ff49573c6b1f2416c5e9ba9eaf635d6315c (diff) | |
download | llvm-22114c319a58074cc5d0ad60d09e0020db89f127.tar.gz llvm-22114c319a58074cc5d0ad60d09e0020db89f127.tar.bz2 llvm-22114c319a58074cc5d0ad60d09e0020db89f127.tar.xz |
Before assuming that the original code didn't work for Athlon64, the person who
replaced it with a FIXME should have determined what did work. Then he would have
realized that the code was in fact correct, and would have avoided breaking it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36173 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/X86/X86Subtarget.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/Target/X86/X86Subtarget.cpp b/lib/Target/X86/X86Subtarget.cpp index 00e34d5d09..3333a3a885 100644 --- a/lib/Target/X86/X86Subtarget.cpp +++ b/lib/Target/X86/X86Subtarget.cpp @@ -115,12 +115,8 @@ void X86Subtarget::AutoDetectSubtargetFeatures() { if (ECX & 0x1) X86SSELevel = SSE3; if ((ECX >> 9) & 0x1) X86SSELevel = SSSE3; - if (memcmp(text.c, "GenuineIntel", 12) == 0) { - X86::GetCpuIDAndInfo(0x80000001, &EAX, &EBX, &ECX, &EDX); - HasX86_64 = (EDX >> 29) & 0x1; - } else if (memcmp(text.c, "AuthenticAMD", 12) == 0) { - // FIXME: Correctly check for 64-bit stuff - } + X86::GetCpuIDAndInfo(0x80000001, &EAX, &EBX, &ECX, &EDX); + HasX86_64 = (EDX >> 29) & 0x1; } static const char *GetCurrentX86CPU() { |