[llvm] [NVPTX] Trim trailing zeros from aggregate initializers with symbols (PR #226960)

Alex MacLean via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 30 13:47:20 PDT 2026


AlexMaclean wrote:

@wenhu1024 could you please elaborate on the motivation for this change? I originally added the trimming of zeros as a compile-time optimization to reduce the size of the generated PTX file for very large all-zero aggregates. I would lean away from introducing more complexity here unless we have some evidence of a meaningful impact.

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


More information about the llvm-commits mailing list