Skip to content

Commit 0c899e7

Browse files
committed
Changed to TLI.getSubtarget()
1 parent beb7485 commit 0c899e7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/Target/AMDGPU/SIISelLowering.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6162,11 +6162,10 @@ static SDValue lowerLaneOp(const SITargetLowering &TLI, SDNode *N,
61626162
IID == Intrinsic::amdgcn_set_inactive_chain_arg;
61636163
SDLoc SL(N);
61646164
MVT IntVT = MVT::getIntegerVT(ValSize);
6165-
const GCNSubtarget &ST =
6166-
DAG.getMachineFunction().getSubtarget<GCNSubtarget>();
6165+
const GCNSubtarget *ST = TLI.getSubtarget();
61676166
unsigned SplitSize = 32;
61686167
if (IID == Intrinsic::amdgcn_update_dpp && (ValSize % 64 == 0) &&
6169-
ST.hasDPALU_DPP() &&
6168+
ST->hasDPALU_DPP() &&
61706169
AMDGPU::isLegalDPALU_DPPControl(N->getConstantOperandVal(3)))
61716170
SplitSize = 64;
61726171

0 commit comments

Comments
 (0)