Skip to content

Commit b19c20f

Browse files
committed
Remove unnecessary hasAVX512 check
1 parent a89cda0 commit b19c20f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42612,8 +42612,7 @@ static SDValue combineTargetShuffle(SDValue N, const SDLoc &DL,
4261242612
SmallVector<int, 32> Mask;
4261342613
SmallVector<SDValue, 2> SrcOps, SubOps;
4261442614
SDValue Src = peekThroughBitcasts(N.getOperand(1));
42615-
if ((Subtarget.hasVLX() ||
42616-
(VT.is512BitVector() && Subtarget.hasAVX512())) &&
42615+
if ((Subtarget.hasVLX() || VT.is512BitVector()) &&
4261742616
getTargetShuffleMask(N, /*AllowSentinelZero=*/false, SrcOps, Mask) &&
4261842617
collectConcatOps(Src.getNode(), SubOps, DAG)) {
4261942618
assert(Mask.size() == NumElts && "Unexpected shuffle mask size");

0 commit comments

Comments
 (0)