[PATCH] D26215: AMDGPU/SI: Emit constant global variables into .text/.rodata sections

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 1 14:45:10 PDT 2016


arsenm added inline comments.


================
Comment at: test/CodeGen/AMDGPU/global-constant.ll:58-59
+  store volatile float %val2, float addrspace(1)* %out
+  %ptr3 = getelementptr [4 x float], [4 x float]* @internal_priv_as, i32 0, i32 %index
+  %val3 = load float, float* %ptr3
+  store volatile float %val3, float addrspace(1)* %out
----------------
I don't think private globals should work. What does this emit for the loads and stores?


https://reviews.llvm.org/D26215





More information about the llvm-commits mailing list