[llvm] [NVPTX] Promote internal function alignments in IR pass (PR #208040)
Alex MacLean via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 9 09:31:16 PDT 2026
================
@@ -1370,16 +1370,10 @@ SDValue NVPTXTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,
Type *ETy = (IsByVal ? Arg.IndirectType : Arg.Ty);
const Align ArgAlign = [&]() {
- if (IsByVal) {
- // The ByValAlign in the Outs[OIdx].Flags is always set at this point,
- // so we don't need to worry whether it's naturally aligned or not.
- // See TargetLowering::LowerCallTo().
- const Align InitialAlign = ArgOuts[0].Flags.getNonZeroByValAlign();
- return getDeviceByValParamAlign(CB->getCalledFunction(), ETy,
- InitialAlign, DL);
- }
- return getPTXParamAlign(CB, Arg.Ty, ArgI + AttributeList::FirstArgIndex,
- DL);
+ const unsigned ParamIdx = ArgI + AttributeList::FirstArgIndex;
----------------
AlexMaclean wrote:
Yea, It's a bit unfortunate. Hopefully once this and https://github.com/llvm/llvm-project/pull/207036 land there will more room for more cleanup.
https://github.com/llvm/llvm-project/pull/208040
More information about the llvm-commits
mailing list