From: Preston Gurd Date: Thu, 26 Apr 2012 19:52:27 +0000 (+0000) Subject: Trivial change to set UseLeaForSP flag in addition to toggling X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c573b1f7ae7ea3bf3757a383a46e9d4426de013e;p=oota-llvm.git Trivial change to set UseLeaForSP flag in addition to toggling 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 --- diff --git a/lib/Target/X86/X86Subtarget.cpp b/lib/Target/X86/X86Subtarget.cpp index fbc5b8ca95d..b924dc42592 100644 --- a/lib/Target/X86/X86Subtarget.cpp +++ b/lib/Target/X86/X86Subtarget.cpp @@ -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); }