Skip to content

Commit f640ab4

Browse files
committed
Make sure we check for lane crossing shuffles (in case we relax the accepted shuffle opcode list)
1 parent bcf6458 commit f640ab4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59327,6 +59327,7 @@ static SDValue combineConcatVectorOps(const SDLoc &DL, MVT VT,
5932759327
if (all_of(seq<int>(NumOps), [&](int I) {
5932859328
return getTargetShuffleMask(Ops[I], /*AllowSentinelZero=*/false,
5932959329
SrcOps[I], SrcMasks[I]) &&
59330+
!is128BitLaneCrossingShuffleMask(OpVT, SrcMasks[I]) &&
5933059331
SrcMasks[I].size() == NumOpElts &&
5933159332
all_of(SrcOps[I], [&OpVT](SDValue V) {
5933259333
return V.getValueType() == OpVT;

0 commit comments

Comments
 (0)