Trivial change to set UseLeaForSP flag in addition to toggling

the FeatureLeaForSP feature bit when llvm auto detects Intel Atom.

Patch by Andy Zhang

llvm-svn: 155655
This commit is contained in:
Preston Gurd 2012-04-26 19:52:27 +00:00
parent fbbb8b9593
commit fb1760744d

View 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);
}