[llvm-commits] [llvm] r155655 - /llvm/trunk/lib/Target/X86/X86Subtarget.cpp

Preston Gurd preston.gurd at intel.com
Thu Apr 26 12:52:27 PDT 2012


Author: pgurd
Date: Thu Apr 26 14:52:27 2012
New Revision: 155655

URL: http://llvm.org/viewvc/llvm-project?rev=155655&view=rev
Log:

Trivial change to set UseLeaForSP flag in addition to toggling
the FeatureLeaForSP feature bit when llvm auto detects Intel Atom.

Patch by Andy Zhang


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=155655&r1=155654&r2=155655&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86Subtarget.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86Subtarget.cpp Thu Apr 26 14:52:27 2012
@@ -255,6 +255,8 @@
     // Set processor type. Currently only Atom is detected.
     if (Family == 6 && Model == 28) {
       X86ProcFamily = IntelAtom;
+
+      UseLeaForSP = true;
       ToggleFeature(X86::FeatureLeaForSP);
     }
 





More information about the llvm-commits mailing list