mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-24 12:29:33 +00:00
Make isMOVDDUP mask check more strict and update comments!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138587 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
32c371f0df
commit
06ef923d14
@ -3914,10 +3914,15 @@ bool X86::isMOVSLDUPMask(ShuffleVectorSDNode *N,
|
||||
}
|
||||
|
||||
/// isMOVDDUPMask - Return true if the specified VECTOR_SHUFFLE operand
|
||||
/// specifies a shuffle of elements that is suitable for input to MOVDDUP.
|
||||
/// specifies a shuffle of elements that is suitable for input to 128-bit
|
||||
/// version of MOVDDUP.
|
||||
bool X86::isMOVDDUPMask(ShuffleVectorSDNode *N) {
|
||||
int e = N->getValueType(0).getVectorNumElements() / 2;
|
||||
EVT VT = N->getValueType(0);
|
||||
|
||||
if (VT.getSizeInBits() != 128)
|
||||
return false;
|
||||
|
||||
int e = VT.getVectorNumElements() / 2;
|
||||
for (int i = 0; i < e; ++i)
|
||||
if (!isUndefOrEqual(N->getMaskElt(i), i))
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user