AMDGPU: Erase llvm.global_ctors/global_dtors after lowering
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 9 Dec 2022 19:11:02 +0000 (14:11 -0500)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 9 Dec 2022 19:25:32 +0000 (14:25 -0500)
commit9cc0779c4e2378e3121968078f09dde14288459d
tree29527b1e080a2efaa22b6ce6130f7c64d2f47402
parent2b405e7e049b754224d90fc630b44ed26fef0aab
AMDGPU: Erase llvm.global_ctors/global_dtors after lowering

We should be able to run the pass multiple times without breaking
anything. If we still need to track these for some reason, we could
replace with new entries for the kernels.
llvm/lib/Target/AMDGPU/AMDGPUCtorDtorLowering.cpp
llvm/test/CodeGen/AMDGPU/lower-ctor-dtor-constexpr-alias.ll
llvm/test/CodeGen/AMDGPU/lower-ctor-dtor.ll