[CodeGen] Split -enable-global-merge into ARM and AArch64 options.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Sat, 11 Apr 2015 00:06:36 +0000 (00:06 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Sat, 11 Apr 2015 00:06:36 +0000 (00:06 +0000)
commitd2069333eea1439a607b9ec8e0c305b1d0b78e99
treed7017340d407f7f4cf1abf9ef6915b2699e0cb3f
parent8d8c981a1f20a5454a4abeffa64942aa0e94d0c5
[CodeGen] Split -enable-global-merge into ARM and AArch64 options.

Currently, there's a single flag, checked by the pass itself.
It can't force-enable the pass (and is on by default), because it
might not even have been created, as that's the targets decision.
Instead, have separate explicit flags, so that the decision is
consistently made in the target.

Keep the flag as a last-resort "force-disable GlobalMerge" for now,
for backwards compatibility.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234666 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/GlobalMerge.cpp
lib/Target/AArch64/AArch64TargetMachine.cpp
lib/Target/ARM/ARMTargetMachine.cpp
test/CodeGen/AArch64/global-merge-1.ll
test/CodeGen/AArch64/global-merge-2.ll
test/CodeGen/AArch64/global-merge-3.ll
test/CodeGen/AArch64/global-merge-4.ll
test/CodeGen/ARM/global-merge-1.ll