[clang] [llvm] [NVPTX] Change the alloca address space in NVPTXLowerAlloca (PR #154814)

Eli Friedman via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 22 11:30:05 PDT 2025


https://github.com/efriedma-quic commented:

Modifying the datalayout feels really strange, and I'm sort of worried it'll have unintended consequences, especially if there's only one target doing it.  

Maybe you can just skip modifying the datalayout?  The passes that run after createNVPTXLowerAllocaPass realistically shouldn't be creating allocas, and if one does slip through somehow you can fix it up in SelectionDAG.

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


More information about the llvm-commits mailing list