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)
commitb2ae37fb675f939ab7f9655cd396f430348355ae
tree0f046ba8d0f0df5b20601928485e0385f5c04e74
parent3e5b855a513046baab794f39ef9055948509b8ee
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.

llvm-svn: 210640
llvm/lib/Transforms/Scalar/GlobalMerge.cpp
llvm/lib/Transforms/Scalar/Scalar.cpp
llvm/test/CodeGen/AArch64/global-merge.ll [new file with mode: 0644]
llvm/test/CodeGen/ARM/global-merge-1.ll [new file with mode: 0644]
llvm/test/Transforms/GlobalMerge/AArch64/arm64.ll
llvm/test/Transforms/GlobalMerge/AArch64/global-merge-1.ll [new file with mode: 0644]
llvm/test/Transforms/GlobalMerge/AArch64/global-merge-2.ll [new file with mode: 0644]
llvm/test/Transforms/GlobalMerge/AArch64/global-merge-3.ll [new file with mode: 0644]
llvm/test/Transforms/GlobalMerge/ARM/arm.ll