Make constmerge a two-pass algorithm so that it won't miss merging
commit72f3c1b1cc1ed1989cbfd649ce33caee52ede172
authorNick Lewycky <nicholas@mxc.ca>
Sat, 15 Jan 2011 18:14:21 +0000 (15 18:14 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sat, 15 Jan 2011 18:14:21 +0000 (15 18:14 +0000)
tree75f3a7a0bfe8fd396865147c8e10d2c1428dd159
parent287628fc769715a88330b2a2e506929b4ef05610
Make constmerge a two-pass algorithm so that it won't miss merging
opporuntities. Fixes PR8978.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123541 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/ConstantMerge.cpp
test/Transforms/ConstantMerge/2011-01-15-EitherOrder.ll [new file with mode: 0644]