Trivial change to set UseLeaForSP flag in addition to toggling
authorPreston Gurd <preston.gurd@intel.com>
Thu, 26 Apr 2012 19:52:27 +0000 (19:52 +0000)
committerPreston Gurd <preston.gurd@intel.com>
Thu, 26 Apr 2012 19:52:27 +0000 (19:52 +0000)
the FeatureLeaForSP feature bit when llvm auto detects Intel Atom.

Patch by Andy Zhang

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155655 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86Subtarget.cpp

index fbc5b8ca95ddd3f6ccae2c1bfabaeb1a15b27807..b924dc42592ddcbeedd811164a7addc79f63d651 100644 (file)
@@ -255,6 +255,8 @@ void X86Subtarget::AutoDetectSubtargetFeatures() {
     // Set processor type. Currently only Atom is detected.
     if (Family == 6 && Model == 28) {
       X86ProcFamily = IntelAtom;
+
+      UseLeaForSP = true;
       ToggleFeature(X86::FeatureLeaForSP);
     }