1
0
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:
Craig Topper 2012-03-18 22:50:10 +00:00
parent bc6d9e5b06
commit 34891f519c

View File

@ -3712,6 +3712,8 @@ static bool isVPERMILPMask(ArrayRef<int> Mask, EVT VT, bool HasAVX) {
static bool isCommutedMOVLMask(ArrayRef<int> Mask, EVT VT,
bool V2IsSplat = false, bool V2IsUndef = false) {
unsigned NumOps = VT.getVectorNumElements();
if (VT.getSizeInBits() == 256)
return false;
if (NumOps != 2 && NumOps != 4 && NumOps != 8 && NumOps != 16)
return false;