[llvm] [GlobalOpt]: Removes metadata when referenced global variable is deleted (PR #169221)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 9 06:40:34 PST 2025
https://github.com/nikic commented:
I'm not entirely sure what the right fix for this is, but I'm sure that this isn't it...
My reading of https://llvm.org/docs/LangRef.html#associated-metadata is that the global referenced by the `!associated` metadata *can* be DCEd independently, just not the other way around. So possibly this needs a relaxation of the IR verifier to allow a poison operand.
Probably @MaskRay is the right person to ask here.
https://github.com/llvm/llvm-project/pull/169221
More information about the llvm-commits
mailing list