mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
isCommutedMOVLMask should only look at 128-bit vectors to match isMOVLMask.
llvm-svn: 153027
This commit is contained in:
parent
bc6d9e5b06
commit
34891f519c
@ -3712,6 +3712,8 @@ static bool isVPERMILPMask(ArrayRef<int> Mask, EVT VT, bool HasAVX) {
|
|||||||
static bool isCommutedMOVLMask(ArrayRef<int> Mask, EVT VT,
|
static bool isCommutedMOVLMask(ArrayRef<int> Mask, EVT VT,
|
||||||
bool V2IsSplat = false, bool V2IsUndef = false) {
|
bool V2IsSplat = false, bool V2IsUndef = false) {
|
||||||
unsigned NumOps = VT.getVectorNumElements();
|
unsigned NumOps = VT.getVectorNumElements();
|
||||||
|
if (VT.getSizeInBits() == 256)
|
||||||
|
return false;
|
||||||
if (NumOps != 2 && NumOps != 4 && NumOps != 8 && NumOps != 16)
|
if (NumOps != 2 && NumOps != 4 && NumOps != 8 && NumOps != 16)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user