Fix: ConstantMerge/2002-09-23-CPR-Update.ll
authorChris Lattner <sabre@nondot.org>
Mon, 23 Sep 2002 23:00:46 +0000 (23:00 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 23 Sep 2002 23:00:46 +0000 (23:00 +0000)
commite4314ed3154f168cc9324e2e213c2733c2b71761
tree7be0fbc7a99783da96a9a929c48d957e3bb3047e
parent10b37b64930197f4f9468a3591f0d10a429bc3fe
Fix: ConstantMerge/2002-09-23-CPR-Update.ll

Basically, this bug boiled down to calling replaceUsesOfWith on a constant,
which changed it's shape in an illegal way.  This pass now goes through all
of the trouble neccesary to do the replacement on constants.

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