llvm-mirror/test/Transforms/GlobalMerge
Eli Friedman 5e3a3e7469 [GlobalMerge] Allow merging globals with explicit section markings.
At least on ELF, it's impossible to tell from the object file whether
two globals with the same section marking were merged: the merged global
uses "private" linkage to hide its symbol, and the aliases look like
regular symbols. I can't think of any other reason to disallow it.
(Of course, we can only merge globals in the same section.)

The weird alignment handling matches AsmPrinter; our alignment handling
for global variables should probably be refactored.

Differential Revision: https://reviews.llvm.org/D49822

llvm-svn: 338791
2018-08-02 23:54:16 +00:00
..
alignment-2.ll [GlobalMerge] Allow merging globals with arbitrary alignment. 2018-07-25 20:58:01 +00:00
alignment.ll [GlobalMerge] Allow merging globals with arbitrary alignment. 2018-07-25 20:58:01 +00:00
basic.ll [GlobalMerge] Allow merging globals with explicit section markings. 2018-08-02 23:54:16 +00:00
debug-info.ll [GlobalMerge] Allow merging globals with arbitrary alignment. 2018-07-25 20:58:01 +00:00
used.ll [GlobalMerge] Handle llvm.compiler.used correctly. 2018-07-25 22:03:35 +00:00