mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
X86: when auto-detecting the subtarget features, make sure use IsIntel to detect
Nehalem, Westmere and Sandy Bridge. AMD also has processor family 6. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161763 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a3a3219b3a
commit
de7f1c2517
@ -248,9 +248,9 @@ void X86Subtarget::AutoDetectSubtargetFeatures() {
|
||||
// If it's Nehalem, unaligned memory access is fast.
|
||||
// Include Westmere and Sandy Bridge as well.
|
||||
// FIXME: add later processors.
|
||||
if ((Family == 6 && Model == 26) ||
|
||||
if (IsIntel && ((Family == 6 && Model == 26) ||
|
||||
(Family == 6 && Model == 44) ||
|
||||
(Family == 6 && Model == 42)) {
|
||||
(Family == 6 && Model == 42))) {
|
||||
IsUAMemFast = true;
|
||||
ToggleFeature(X86::FeatureFastUAMem);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user