[MergeFunctions] Replace all uses of unnamed_addr functions.
authorwhitequark <whitequark@whitequark.org>
Sun, 15 Oct 2017 12:29:01 +0000 (12:29 +0000)
committerwhitequark <whitequark@whitequark.org>
Sun, 15 Oct 2017 12:29:01 +0000 (12:29 +0000)
commitb2ce9ffede511a22b5d244d344272f212553b900
tree75b450508848fef5eda75852c51a8c3798c5542f
parentc8d67979c038cb71ebef426fe311859dfe431e19
[MergeFunctions] Replace all uses of unnamed_addr functions.

This reduces code size for constructs like vtables or interrupt
tables that refer to functions in global initializers.

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

llvm-svn: 315852
llvm/lib/Transforms/IPO/MergeFunctions.cpp
llvm/test/Transforms/MergeFunc/merge-unnamed-addr-bitcast.ll [new file with mode: 0644]
llvm/test/Transforms/MergeFunc/merge-unnamed-addr.ll [new file with mode: 0644]