[llvm-commits] [llvm] r61686 - /llvm/trunk/lib/Target/X86/X86Subtarget.cpp
Evan Cheng
evan.cheng at apple.com
Mon Jan 5 00:45:04 PST 2009
Author: evancheng
Date: Mon Jan 5 02:45:01 2009
New Revision: 61686
URL: http://llvm.org/viewvc/llvm-project?rev=61686&view=rev
Log:
Atom and Core i7 do not have same model number after all.
Modified:
llvm/trunk/lib/Target/X86/X86Subtarget.cpp
Modified: llvm/trunk/lib/Target/X86/X86Subtarget.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86Subtarget.cpp?rev=61686&r1=61685&r2=61686&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86Subtarget.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86Subtarget.cpp Mon Jan 5 02:45:01 2009
@@ -204,7 +204,6 @@
unsigned Family = 0;
unsigned Model = 0;
DetectFamilyModel(EAX, Family, Model);
- bool HasSSE42 = (ECX >> 19) & 0x1;
X86::GetCpuIDAndInfo(0x80000001, &EAX, &EBX, &ECX, &EDX);
bool Em64T = (EDX >> 29) & 0x1;
@@ -252,10 +251,10 @@
case 4:
case 6: // same as 4, but 65nm
return (Em64T) ? "nocona" : "prescott";
+ case 26:
+ return "corei7";
case 28:
- // Intel Atom, and Core i7 both have this model.
- // Atom has SSSE3, Core i7 has SSE4.2
- return (HasSSE42) ? "corei7" : "atom";
+ return "atom";
default:
return (Em64T) ? "x86-64" : "pentium4";
}
More information about the llvm-commits
mailing list