Skip to content

Commit 4610ce5

Browse files
committed
s/base/PossibleBaseAddr
1 parent 59ce0c2 commit 4610ce5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -2488,11 +2488,12 @@ bool NVPTXDAGToDAGISel::SelectADDRsi_imp(SDNode *OpNode, SDValue Addr,
24882488
uint64_t AccumulatedOffset) -> std::optional<uint64_t> {
24892489
if (isAddLike(Addr)) {
24902490
if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) {
2491-
SDValue base = Addr.getOperand(0);
2491+
SDValue PossibleBaseAddr = Addr.getOperand(0);
24922492
AccumulatedOffset += CN->getZExtValue();
2493-
if (SelectDirectAddr(base, Base))
2493+
if (SelectDirectAddr(PossibleBaseAddr, Base))
24942494
return AccumulatedOffset;
2495-
return FindRootAddressAndTotalOffset(base, AccumulatedOffset);
2495+
return FindRootAddressAndTotalOffset(PossibleBaseAddr,
2496+
AccumulatedOffset);
24962497
}
24972498
}
24982499
return std::nullopt;

0 commit comments

Comments
 (0)