[llvm] [NVPTX] Cleanup NVPTXLowerArgs, simplifying logic and improving alignment propagation (PR #180286)

Drew Kersnar via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 19 12:56:21 PST 2026


================
@@ -4115,6 +4115,8 @@ SDValue NVPTXTargetLowering::LowerFormalArguments(
 
       SDValue P;
       if (isKernelFunction(F)) {
+        assert(isParamGridConstant(Arg) && "ByVal argument must be lowered to "
----------------
dakersnar wrote:

Are there any advantages to being able to make that distinction?

https://github.com/llvm/llvm-project/pull/180286


More information about the llvm-commits mailing list