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

Alex MacLean via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 21 11:40:12 PDT 2025


================
@@ -371,6 +371,8 @@ void NVPTXPassConfig::addIRPasses() {
   if (getOptLevel() != CodeGenOptLevel::None) {
     addAddressSpaceInferencePasses();
     addStraightLineScalarOptimizationPasses();
+  } else {
+    addPass(createNVPTXLowerAllocaPass());
----------------
AlexMaclean wrote:

Why are we only running this when `getOptLevel() == CodeGenOptLevel::None`? It seems like required lowering we'd want to always run?

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


More information about the llvm-commits mailing list