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