Skip to content

Commit e147891

Browse files
committed
address review comments x2
1 parent 5e60c62 commit e147891

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2937,13 +2937,13 @@ static SDValue lowerIntrinsicWChain(SDValue Op, SelectionDAG &DAG) {
29372937
case Intrinsic::nvvm_tcgen05_ld_16x64b_x2:
29382938
case Intrinsic::nvvm_tcgen05_ld_16x128b_x1:
29392939
case Intrinsic::nvvm_tcgen05_ld_32x32b_x2:
2940-
if (auto Pair = lowerTcgen05Ld(Op.getNode(), DAG))
2941-
return DAG.getMergeValues({Pair->first, Pair->second}, SDLoc(Op));
2940+
if (auto Res = lowerTcgen05Ld(Op.getNode(), DAG))
2941+
return DAG.getMergeValues({Res->first, Res->second}, SDLoc(Op));
29422942
return SDValue();
29432943

29442944
case Intrinsic::nvvm_tcgen05_ld_16x32bx2_x2:
2945-
if (auto Pair = lowerTcgen05Ld(Op.getNode(), DAG, /*HasOffset=*/true))
2946-
return DAG.getMergeValues({Pair->first, Pair->second}, SDLoc(Op));
2945+
if (auto Res = lowerTcgen05Ld(Op.getNode(), DAG, /*HasOffset=*/true))
2946+
return DAG.getMergeValues({Res->first, Res->second}, SDLoc(Op));
29472947
return SDValue();
29482948
}
29492949
}
@@ -6513,9 +6513,9 @@ static void ReplaceINTRINSIC_W_CHAIN(SDNode *N, SelectionDAG &DAG,
65136513
case Intrinsic::nvvm_tcgen05_ld_16x256b_x8:
65146514
case Intrinsic::nvvm_tcgen05_ld_16x256b_x16:
65156515
case Intrinsic::nvvm_tcgen05_ld_16x256b_x32:
6516-
if (auto Pair = lowerTcgen05Ld(N, DAG)) {
6517-
Results.push_back(Pair->first);
6518-
Results.push_back(Pair->second);
6516+
if (auto Res = lowerTcgen05Ld(N, DAG)) {
6517+
Results.push_back(Res->first);
6518+
Results.push_back(Res->second);
65196519
}
65206520
return;
65216521

@@ -6525,9 +6525,9 @@ static void ReplaceINTRINSIC_W_CHAIN(SDNode *N, SelectionDAG &DAG,
65256525
case Intrinsic::nvvm_tcgen05_ld_16x32bx2_x32:
65266526
case Intrinsic::nvvm_tcgen05_ld_16x32bx2_x64:
65276527
case Intrinsic::nvvm_tcgen05_ld_16x32bx2_x128:
6528-
if (auto Pair = lowerTcgen05Ld(N, DAG, /*HasOffset=*/true)) {
6529-
Results.push_back(Pair->first);
6530-
Results.push_back(Pair->second);
6528+
if (auto Res = lowerTcgen05Ld(N, DAG, /*HasOffset=*/true)) {
6529+
Results.push_back(Res->first);
6530+
Results.push_back(Res->second);
65316531
}
65326532
return;
65336533
}

0 commit comments

Comments
 (0)