Make the MergeGlobals pass correctly handle the address space qualifiers of the globa...
authorSilviu Baranga <silviu.baranga@arm.com>
Mon, 7 Jan 2013 12:31:25 +0000 (12:31 +0000)
committerSilviu Baranga <silviu.baranga@arm.com>
Mon, 7 Jan 2013 12:31:25 +0000 (12:31 +0000)
commite97165901ee51216b22b808041b10febbb4afa5e
treec8fa4a5bb21e8d3a6279e44647b012f6771f6d7e
parenta1e7530bb4a7aa8626f36a77be77fccade1d0b34
Make the MergeGlobals pass correctly handle the address space qualifiers of the global variables. We partition the set of globals by their address space, and apply the same the trasnformation as before to merge them.

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