Fix ARMGlobalMerge pass to check if globals are entirely within range.
authorBob Wilson <bob.wilson@apple.com>
Wed, 17 Nov 2010 21:25:36 +0000 (21:25 +0000)
committerBob Wilson <bob.wilson@apple.com>
Wed, 17 Nov 2010 21:25:36 +0000 (21:25 +0000)
commit619a3726177c63a14e2822a80e6bc897be2e5a91
treed53a5db9a75e6c1cd36f80127f4252c512f35b83
parent72831dc905c2354fc08762dbfd5f1b20fbd5b18b
Fix ARMGlobalMerge pass to check if globals are entirely within range.
It is generally not sufficient to check if the starting offset is in range
of the maximum offset that can be efficiently used for the target.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119565 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMGlobalMerge.cpp
test/CodeGen/ARM/global-merge.ll