[llvm] [NVPTX] Cleanup NVPTXLowerArgs, simplifying logic and improving alignment propagation (PR #180286)
Akshay Deodhar via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 18 16:09:25 PST 2026
================
@@ -4115,6 +4115,8 @@ SDValue NVPTXTargetLowering::LowerFormalArguments(
SDValue P;
if (isKernelFunction(F)) {
+ assert(isParamGridConstant(Arg) && "ByVal argument must be lowered to "
----------------
akshayrdeodhar wrote:
By the time we reach ISelLowering, there'll be no way to distinguish between parameters that were grid_constant in the CUDA source, and ones which were marked grid_constant by NVPTXLowerArgs. I do agree that in the IR generated by NLA, every parameter _does_ provide the grid_constant guarantee.
What's the use case for running the pass multiple times?
https://github.com/llvm/llvm-project/pull/180286
More information about the llvm-commits
mailing list