Fix PR7647, handling the case when 'To' ends up being
authorChris Lattner <sabre@nondot.org>
Thu, 15 Jul 2010 06:36:08 +0000 (06:36 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 15 Jul 2010 06:36:08 +0000 (06:36 +0000)
commitd2bfe54b0a9f28c021d4f0790bdb5224d5579447
tree687c9d94a02673a5808c6f36a7e7fd845cde810c
parent35a939b97dba538bfc12010b7ac26bffbf5ec4cb
Fix PR7647, handling the case when 'To' ends up being
mutated by recursive simplification.  This also enhances
ReplaceAndSimplifyAllUses to actually do a real RAUW
at the end of it, which updates any value handles
pointing to "From" to start pointing to "To".  This
seems useful for debug info and random other VH users.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108415 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/InstructionSimplify.cpp
test/Transforms/JumpThreading/crash.ll