@@ -54482,6 +54482,7 @@ static SDValue combineConcatVectorOps(const SDLoc &DL, MVT VT,
54482
54482
SDValue Op0 = Ops[0];
54483
54483
bool IsSplat = llvm::all_equal(Ops);
54484
54484
unsigned NumOps = Ops.size();
54485
+ const TargetLowering &TLI = DAG.getTargetLoweringInfo();
54485
54486
54486
54487
// Repeated subvectors.
54487
54488
if (IsSplat &&
@@ -54938,7 +54939,7 @@ static SDValue combineConcatVectorOps(const SDLoc &DL, MVT VT,
54938
54939
if (SelVT.getVectorElementType() == MVT::i1) {
54939
54940
SelVT = EVT::getVectorVT(*DAG.getContext(), MVT::i1,
54940
54941
NumOps * SelVT.getVectorNumElements());
54941
- if (DAG.getTargetLoweringInfo() .isTypeLegal(SelVT))
54942
+ if (TLI .isTypeLegal(SelVT))
54942
54943
return DAG.getNode(Op0.getOpcode(), DL, VT,
54943
54944
ConcatSubOperand(SelVT.getSimpleVT(), Ops, 0),
54944
54945
ConcatSubOperand(VT, Ops, 1),
@@ -54952,7 +54953,7 @@ static SDValue combineConcatVectorOps(const SDLoc &DL, MVT VT,
54952
54953
IsConcatFree(VT, Ops, 1) && IsConcatFree(VT, Ops, 2)) {
54953
54954
EVT SelVT = Ops[0].getOperand(0).getValueType();
54954
54955
SelVT = SelVT.getDoubleNumVectorElementsVT(*DAG.getContext());
54955
- if (DAG.getTargetLoweringInfo() .isTypeLegal(SelVT))
54956
+ if (TLI .isTypeLegal(SelVT))
54956
54957
return DAG.getNode(Op0.getOpcode(), DL, VT,
54957
54958
ConcatSubOperand(SelVT.getSimpleVT(), Ops, 0),
54958
54959
ConcatSubOperand(VT, Ops, 1),
0 commit comments