mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
use v8i32 as optimal mem type over v8f32 if AVX2 is enabled. Similar to SSE2 vs SSE1.
llvm-svn: 148109
This commit is contained in:
parent
e52c0484de
commit
e75115a861
@ -1327,9 +1327,12 @@ X86TargetLowering::getOptimalMemOpType(uint64_t Size,
|
||||
((DstAlign == 0 || DstAlign >= 16) &&
|
||||
(SrcAlign == 0 || SrcAlign >= 16))) &&
|
||||
Subtarget->getStackAlignment() >= 16) {
|
||||
if (Subtarget->hasAVX() &&
|
||||
Subtarget->getStackAlignment() >= 32)
|
||||
return MVT::v8f32;
|
||||
if (Subtarget->getStackAlignment() >= 32) {
|
||||
if (Subtarget->hasAVX2())
|
||||
return MVT::v8i32;
|
||||
if (Subtarget->hasAVX())
|
||||
return MVT::v8f32;
|
||||
}
|
||||
if (Subtarget->hasSSE2())
|
||||
return MVT::v4i32;
|
||||
if (Subtarget->hasSSE1())
|
||||
|
Loading…
x
Reference in New Issue
Block a user