projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c00db7
)
Trivial change to set UseLeaForSP flag in addition to toggling
author
Preston Gurd
<preston.gurd@intel.com>
Thu, 26 Apr 2012 19:52:27 +0000
(19:52 +0000)
committer
Preston 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
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86Subtarget.cpp
b/lib/Target/X86/X86Subtarget.cpp
index fbc5b8ca95ddd3f6ccae2c1bfabaeb1a15b27807..b924dc42592ddcbeedd811164a7addc79f63d651 100644
(file)
--- 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);
}