Skip to content

Commit 304cfc7

Browse files
committed
[X86] combineConcatVectorOps - remove superfluous Subtarget.hasAVX() check
This function only ever gets called by AVX targets, and we already assert for this at the top of the function
1 parent c4f5fd7 commit 304cfc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52552,7 +52552,7 @@ static SDValue combineConcatVectorOps(const SDLoc &DL, MVT VT,
5255252552
LLVM_FALLTHROUGH;
5255352553
case X86ISD::VPERMILPI:
5255452554
if (!IsSplat && NumOps == 2 && (VT == MVT::v8f32 || VT == MVT::v8i32) &&
52555-
Subtarget.hasAVX() && Op0.getOperand(1) == Ops[1].getOperand(1)) {
52555+
Op0.getOperand(1) == Ops[1].getOperand(1)) {
5255652556
SDValue Res = DAG.getBitcast(MVT::v8f32, ConcatSubOperand(VT, Ops, 0));
5255752557
Res = DAG.getNode(X86ISD::VPERMILPI, DL, MVT::v8f32, Res,
5255852558
Op0.getOperand(1));

0 commit comments

Comments
 (0)