1. modernize the constantmerge pass, using densemap/smallvector.
authorChris Lattner <sabre@nondot.org>
Fri, 12 Feb 2010 18:17:23 +0000 (18:17 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 12 Feb 2010 18:17:23 +0000 (18:17 +0000)
commitc3b6ffc431bbf01f615c6695a0dc1b9368102cad
tree35c30443f188f65f61d9345ee9ff82309370790a
parent4b2657a404b58e193f84ae7c38ea6ba705d5071d
1. modernize the constantmerge pass, using densemap/smallvector.
2. don't bother trying to merge globals in non-default sections,
   doing so is quite dubious at best anyway.
3. fix a bug reported by Arnaud de Grandmaison where we'd try to
   merge two globals in different address spaces.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95995 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/ConstantMerge.cpp
test/Transforms/ConstantMerge/dont-merge.ll