Merging r322900 and r323307:
authorHans Wennborg <hans@hanshq.net>
Wed, 24 Jan 2018 15:53:46 +0000 (15:53 +0000)
committerHans Wennborg <hans@hanshq.net>
Wed, 24 Jan 2018 15:53:46 +0000 (15:53 +0000)
commit50fb516bb51c98f3b8d5fd1bd4d11849a349c6bc
treeb1a7321f8410b916305cf08f12d26b87bb2409e5
parent093b1726dc65511236f273cac248c1c1587cce1a
Merging r322900 and r323307:

------------------------------------------------------------------------
r322900 | mstorsjo | 2018-01-18 22:21:48 +0100 (Thu, 18 Jan 2018) | 6 lines

[test] Actually check the common parts in CodeGen/ARM/global-merge-external.ll. NFC.

Previously, these parts weren't ever checked. The label patterns
need to be extended to match successfully on macho.

Differential Revision: https://reviews.llvm.org/D42126
------------------------------------------------------------------------

------------------------------------------------------------------------
r323307 | mstorsjo | 2018-01-24 07:40:04 +0100 (Wed, 24 Jan 2018) | 6 lines

[GlobalMerge] Don't merge dllexport globals

Merging such globals loses the dllexport attribute. Add a test
to check that normal globals still are merged.

Differential Revision: https://reviews.llvm.org/D42127
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_60@323337 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/GlobalMerge.cpp
test/CodeGen/ARM/global-merge-dllexport.ll [new file with mode: 0644]
test/CodeGen/ARM/global-merge-external.ll