Skip to content

Commit 0c195e5

Browse files
authored
[NVPTX][NFC] Remove unused parameter of getArgumentAlignment (#78604)
1 parent cb67dc1 commit 0c195e5

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1666,8 +1666,7 @@ std::string NVPTXTargetLowering::getPrototype(
16661666
return Prototype;
16671667
}
16681668

1669-
Align NVPTXTargetLowering::getArgumentAlignment(SDValue Callee,
1670-
const CallBase *CB, Type *Ty,
1669+
Align NVPTXTargetLowering::getArgumentAlignment(const CallBase *CB, Type *Ty,
16711670
unsigned Idx,
16721671
const DataLayout &DL) const {
16731672
if (!CB) {
@@ -1794,7 +1793,7 @@ SDValue NVPTXTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,
17941793
if (IsVAArg)
17951794
VAOffset = alignTo(VAOffset, ArgAlign);
17961795
} else {
1797-
ArgAlign = getArgumentAlignment(Callee, CB, Ty, ParamCount + 1, DL);
1796+
ArgAlign = getArgumentAlignment(CB, Ty, ParamCount + 1, DL);
17981797
}
17991798

18001799
unsigned TypeSize =
@@ -1976,7 +1975,7 @@ SDValue NVPTXTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,
19761975
DeclareRetOps);
19771976
InGlue = Chain.getValue(1);
19781977
} else {
1979-
retAlignment = getArgumentAlignment(Callee, CB, RetTy, 0, DL);
1978+
retAlignment = getArgumentAlignment(CB, RetTy, 0, DL);
19801979
assert(retAlignment && "retAlignment is guaranteed to be set");
19811980
SDVTList DeclareRetVTs = DAG.getVTList(MVT::Other, MVT::Glue);
19821981
SDValue DeclareRetOps[] = {
@@ -2107,7 +2106,7 @@ SDValue NVPTXTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,
21072106
ComputePTXValueVTs(*this, DL, RetTy, VTs, &Offsets, 0);
21082107
assert(VTs.size() == Ins.size() && "Bad value decomposition");
21092108

2110-
Align RetAlign = getArgumentAlignment(Callee, CB, RetTy, 0, DL);
2109+
Align RetAlign = getArgumentAlignment(CB, RetTy, 0, DL);
21112110
auto VectorInfo = VectorizePTXValueVTs(VTs, Offsets, RetAlign);
21122111

21132112
SmallVector<EVT, 6> LoadVTs;

llvm/lib/Target/NVPTX/NVPTXISelLowering.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -637,8 +637,8 @@ class NVPTXTargetLowering : public TargetLowering {
637637
SelectionDAG &DAG) const override;
638638
SDValue PerformDAGCombine(SDNode *N, DAGCombinerInfo &DCI) const override;
639639

640-
Align getArgumentAlignment(SDValue Callee, const CallBase *CB, Type *Ty,
641-
unsigned Idx, const DataLayout &DL) const;
640+
Align getArgumentAlignment(const CallBase *CB, Type *Ty, unsigned Idx,
641+
const DataLayout &DL) const;
642642
};
643643

644644
} // namespace llvm

0 commit comments

Comments
 (0)