[llvm-commits] CVS: llvm/lib/Target/X86/X86Subtarget.cpp
Jeff Cohen
jeffc at jolt-lang.org
Mon Apr 16 14:49:19 PDT 2007
Changes in directory llvm/lib/Target/X86:
X86Subtarget.cpp updated: 1.54 -> 1.55
---
Log message:
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.
---
Diffs of the changes: (+2 -6)
X86Subtarget.cpp | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
Index: llvm/lib/Target/X86/X86Subtarget.cpp
diff -u llvm/lib/Target/X86/X86Subtarget.cpp:1.54 llvm/lib/Target/X86/X86Subtarget.cpp:1.55
--- llvm/lib/Target/X86/X86Subtarget.cpp:1.54 Tue Apr 10 17:10:25 2007
+++ llvm/lib/Target/X86/X86Subtarget.cpp Mon Apr 16 16:48:58 2007
@@ -115,12 +115,8 @@
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() {
More information about the llvm-commits
mailing list