[llvm] [NVPTX] Cleanup NVPTXLowerArgs, simplifying logic and improving alignment propagation (PR #180286)
Alex MacLean via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 12 19:49:16 PST 2026
================
@@ -425,27 +405,26 @@ static CallInst *createNVVMInternalAddrspaceWrap(IRBuilder<> &IRB,
ArgInParam->addRetAttr(
Attribute::getWithAlignment(ArgInParam->getContext(), *ParamAlign));
+ Arg.addAttr(Attribute::get(Arg.getContext(), "nvvm.grid_constant"));
----------------
AlexMaclean wrote:
See above. It provides better sanity checking and makes it possible to run the pass multiple times.
https://github.com/llvm/llvm-project/pull/180286
More information about the llvm-commits
mailing list