Fix the ARMGlobalMerge pass to look at variable sizes instead of pointer sizes.
authorBob Wilson <bob.wilson@apple.com>
Wed, 17 Nov 2010 21:25:27 +0000 (21:25 +0000)
committerBob Wilson <bob.wilson@apple.com>
Wed, 17 Nov 2010 21:25:27 +0000 (21:25 +0000)
commitedf046716ce7d0da9479c37a5bbb6dd33ce6d390
tree4a10914e829db118408b7b2c172f72f79fd45bc5
parent17ead4ff4baceb2c5503f233d0288d363ae44165
Fix the ARMGlobalMerge pass to look at variable sizes instead of pointer sizes.
It was mistakenly looking at the pointer type when checking for the size of
global variables.  This is a partial fix for Radar 8673120.

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