[llvm] [NVPTX] Check Before inserting AddrSpaceCastInst in NVPTXLoweringAlloca (PR #106127)

Artem Belevich via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 26 14:54:46 PDT 2024


================
@@ -17,7 +17,21 @@ define void @kernel() {
   ret void
 }
 
+define void @alloc_already_in_addrspace5() {
+; LABEL: @lower_alloca_addrspace5
+; PTX-LABEL: .visible .func alloc_already_in_addrspace5(
+  %A = alloca i32, addrspace(5)
----------------
Artem-B wrote:

Huh. I don't know that AS-specific alloca is a thing.

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


More information about the llvm-commits mailing list