Skip to content

Commit 5a1211b

Browse files
committed
Only handle widening of lowest subvector
1 parent b19c20f commit 5a1211b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42620,8 +42620,8 @@ static SDValue combineTargetShuffle(SDValue N, const SDLoc &DL,
4262042620
assert((SubOps.size() == 2 || SubOps.size() == 4) &&
4262142621
"Unexpected split ops");
4262242622
// Bail if we were permuting a widened vector.
42623-
if ((SubOps.size() == 2 && SubOps[1].isUndef()) ||
42624-
(SubOps.size() == 4 && SubOps[2].isUndef() && SubOps[3].isUndef()))
42623+
if (SubOps[1].isUndef() &&
42624+
(SubOps.size() == 2 || (SubOps[2].isUndef() && SubOps[3].isUndef())))
4262542625
return SDValue();
4262642626
// Bail if any subops would have folded into the concat.
4262742627
if (any_of(SubOps, [](SDValue Op) { return isShuffleFoldableLoad(Op); }))

0 commit comments

Comments
 (0)