[ARM] Make GlobalMerge merge extern globals by default
authorJohn Brawn <john.brawn@arm.com>
Mon, 3 Aug 2015 12:13:33 +0000 (12:13 +0000)
committerJohn Brawn <john.brawn@arm.com>
Mon, 3 Aug 2015 12:13:33 +0000 (12:13 +0000)
commitf3324cf1a53853303556878375fecba01bb75261
treef5bc4431e98f6a0fb9d36afd6b57b4928ccb62cf
parent8b954241f85b8383fb8725b0a1108c55f31f14e9
[ARM] Make GlobalMerge merge extern globals by default

Enabling merging of extern globals appears to be generally either beneficial or
harmless. On some benchmarks suites (on Cortex-M4F, Cortex-A9, and Cortex-A57)
it gives improvements in the 1-5% range, but in the rest the overall effect is
zero.

Differential Revision: http://reviews.llvm.org/D10966

llvm-svn: 243874
llvm/lib/Target/ARM/ARMTargetMachine.cpp
llvm/test/CodeGen/ARM/global-merge-external.ll [new file with mode: 0644]