john-brawn-arm wrote:
Looks like this is probably due to this bit in GlobalMergeImpl::run in
llvm/lib/CodeGen/GlobalMerge.cpp
```
// Don't merge globals with metadata other than !dbg, as this is
essentially
// equivalent to adding metadata to an existing global, which is not
// necessarily a correct transformation depending on the specific
metadata's
// semantics. We will later use copyMetadata() to copy metadata from
// component globals to the combined global, which only knows how to do
this
// correctly for !dbg (and !type, but by this point LowerTypeTests will
have
// already run).
if (GV.hasMetadataOtherThanDebugLoc())
continue;
```https://github.com/llvm/llvm-project/pull/184065 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
