Global merge for global symbols.
authorJiangning Liu <jiangning.liu@arm.com>
Wed, 11 Jun 2014 06:44:53 +0000 (06:44 +0000)
committerJiangning Liu <jiangning.liu@arm.com>
Wed, 11 Jun 2014 06:44:53 +0000 (06:44 +0000)
commitf847ccb87afc8814519bda98000260d80f7b6e74
tree43e49011f00e0eb90e636c12ef144058bcd34a1f
parent4c3b0b75949bbf5553ea6e0bf2d43111f76ffcf2
Global merge for global symbols.

This commit is to improve global merge pass and support global symbol merge.
The global symbol merge is not enabled by default. For aarch64, we need some
more back-end fix to make it really benifit ADRP CSE.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210640 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/GlobalMerge.cpp
lib/Transforms/Scalar/Scalar.cpp
test/CodeGen/AArch64/global-merge.ll [new file with mode: 0644]
test/CodeGen/ARM/global-merge-1.ll [new file with mode: 0644]
test/Transforms/GlobalMerge/AArch64/arm64.ll
test/Transforms/GlobalMerge/AArch64/global-merge-1.ll [new file with mode: 0644]
test/Transforms/GlobalMerge/AArch64/global-merge-2.ll [new file with mode: 0644]
test/Transforms/GlobalMerge/AArch64/global-merge-3.ll [new file with mode: 0644]
test/Transforms/GlobalMerge/ARM/arm.ll