[llvm] [NVPTX][NFC] Remove unused parameter of getArgumentAlignment (PR #78604)
Alex MacLean via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 18 08:48:33 PST 2024
https://github.com/AlexMaclean created https://github.com/llvm/llvm-project/pull/78604
None
>From c427d8bb2fe538e0b3b8620eb8a446ab4f5e94b9 Mon Sep 17 00:00:00 2001
From: Alex MacLean <amaclean at nvidia.com>
Date: Thu, 18 Jan 2024 01:45:50 +0000
Subject: [PATCH] [NVPTX][NFC] Remove unused parameter of getArgumentAlignment
---
llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp | 9 ++++-----
llvm/lib/Target/NVPTX/NVPTXISelLowering.h | 4 ++--
2 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp b/llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
index 9e9c05adce49ec..8080e8404e4274 100644
--- a/llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
+++ b/llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
@@ -1666,8 +1666,7 @@ std::string NVPTXTargetLowering::getPrototype(
return Prototype;
}
-Align NVPTXTargetLowering::getArgumentAlignment(SDValue Callee,
- const CallBase *CB, Type *Ty,
+Align NVPTXTargetLowering::getArgumentAlignment(const CallBase *CB, Type *Ty,
unsigned Idx,
const DataLayout &DL) const {
if (!CB) {
@@ -1794,7 +1793,7 @@ SDValue NVPTXTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,
if (IsVAArg)
VAOffset = alignTo(VAOffset, ArgAlign);
} else {
- ArgAlign = getArgumentAlignment(Callee, CB, Ty, ParamCount + 1, DL);
+ ArgAlign = getArgumentAlignment(CB, Ty, ParamCount + 1, DL);
}
unsigned TypeSize =
@@ -1976,7 +1975,7 @@ SDValue NVPTXTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,
DeclareRetOps);
InGlue = Chain.getValue(1);
} else {
- retAlignment = getArgumentAlignment(Callee, CB, RetTy, 0, DL);
+ retAlignment = getArgumentAlignment(CB, RetTy, 0, DL);
assert(retAlignment && "retAlignment is guaranteed to be set");
SDVTList DeclareRetVTs = DAG.getVTList(MVT::Other, MVT::Glue);
SDValue DeclareRetOps[] = {
@@ -2107,7 +2106,7 @@ SDValue NVPTXTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,
ComputePTXValueVTs(*this, DL, RetTy, VTs, &Offsets, 0);
assert(VTs.size() == Ins.size() && "Bad value decomposition");
- Align RetAlign = getArgumentAlignment(Callee, CB, RetTy, 0, DL);
+ Align RetAlign = getArgumentAlignment(CB, RetTy, 0, DL);
auto VectorInfo = VectorizePTXValueVTs(VTs, Offsets, RetAlign);
SmallVector<EVT, 6> LoadVTs;
diff --git a/llvm/lib/Target/NVPTX/NVPTXISelLowering.h b/llvm/lib/Target/NVPTX/NVPTXISelLowering.h
index 18e6179b06819f..5d3fd992812ef9 100644
--- a/llvm/lib/Target/NVPTX/NVPTXISelLowering.h
+++ b/llvm/lib/Target/NVPTX/NVPTXISelLowering.h
@@ -637,8 +637,8 @@ class NVPTXTargetLowering : public TargetLowering {
SelectionDAG &DAG) const override;
SDValue PerformDAGCombine(SDNode *N, DAGCombinerInfo &DCI) const override;
- Align getArgumentAlignment(SDValue Callee, const CallBase *CB, Type *Ty,
- unsigned Idx, const DataLayout &DL) const;
+ Align getArgumentAlignment(const CallBase *CB, Type *Ty, unsigned Idx,
+ const DataLayout &DL) const;
};
} // namespace llvm
More information about the llvm-commits
mailing list