[llvm] [GlobalOpt] Preserve Address Space when recreating GV (PR #171211)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 9 12:24:17 PST 2025
================
@@ -8,9 +8,9 @@
@_ZM2C = internal addrspace(1) global %struct.FakeDeviceGlobal zeroinitializer, align 8
@_ZL1C = internal addrspace(1) global %struct.FakeDeviceGlobal zeroinitializer, align 8
- at llvm.compiler.used = appending global [2 x ptr addrspace(4)] [ptr addrspace(4) addrspacecast (ptr addrspace(1) @_ZM2C to ptr addrspace(4)), ptr addrspace(4) addrspacecast (ptr addrspace(1) @_ZL1C to ptr addrspace(4))]
----------------
arsenm wrote:
I would introduce a separate test for this, instead of modifying this existing one
https://github.com/llvm/llvm-project/pull/171211
More information about the llvm-commits
mailing list