Revert r149110 and add a testcase that was crashing since that revision.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 27 Jan 2012 22:42:48 +0000 (22:42 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 27 Jan 2012 22:42:48 +0000 (22:42 +0000)
commit41cedd740d3cd66e12cb0f0a4a08f3365ca90df8
tree3196ade83f57b35eabfefad08f87828424c41f34
parent907cc8f38df212a87a6028682d91df01ba923f4f
Revert r149110 and add a testcase that was crashing since that revision.
Unfortunately I also had to disable constant-pool-sharing.ll the code it tests has been
updated to use the IL logic.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149148 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ConstantFolding.cpp
test/CodeGen/X86/constant-pool-sharing.ll
test/Transforms/ConstProp/basictest.ll
test/Transforms/InstCombine/icmp.ll