I think this can save some compilation time and prevent some unnecessary changes.
Two test cases are changed. In AArch64/global-merge-3.ll, y is not merged with any other globals, but is changed to @_MergedGlobals.1 (or __MergedGlobals_y in the case of ios). In ARM/global-merge.ll, g3 is not merged with other globals, but is changed to _MergedGlobals.1.