mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
If part of the mask is "undef", then ignore it as we don't care what goes into it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55147 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e85dc49e13
commit
ae0218c914
@ -3479,6 +3479,8 @@ SDValue LowerVECTOR_SHUFFLEv8i16(SDValue V1, SDValue V2,
|
||||
if (InOrder[i])
|
||||
continue;
|
||||
SDValue Elt = MaskElts[i];
|
||||
if (Elt.getOpcode() == ISD::UNDEF)
|
||||
continue;
|
||||
unsigned EltIdx = cast<ConstantSDNode>(Elt)->getValue();
|
||||
SDValue ExtOp = (EltIdx < 8)
|
||||
? DAG.getNode(ISD::EXTRACT_VECTOR_ELT, MVT::i16, V1,
|
||||
|
Loading…
Reference in New Issue
Block a user