[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)
commitd58af05fd8f1c5370d82de4ce56458779d3e02dc
tree0a86e2dcfc084c65e66b93643863fa49a894ba84
parent583fe8f2032099d63c12d2da2196f62b92a3e2af
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243874 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMTargetMachine.cpp
test/CodeGen/ARM/global-merge-external.ll [new file with mode: 0644]