Fix this buggy transformation. Two observations:
authorChris Lattner <sabre@nondot.org>
Thu, 24 Jan 2008 07:57:06 +0000 (07:57 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 24 Jan 2008 07:57:06 +0000 (07:57 +0000)
commit125991a1f62db419fc4a504986a998d85fbef699
tree2eb366c47a8ca4edd81ce206d07f7698c25ce16d
parent20e3d86766a38492b3f6203bf4cf70dd9d187b7b
Fix this buggy transformation.  Two observations:
1. we already know the value is dead, so don't bother replacing
   it with undef.
2. The very case the comment describes actually makes the load
   live which asserts in deletenode.  If we do the replacement
   and the node becomes live, just treat it as new.  This fixes
   a failure on X86/2008-01-16-InvalidDAGCombineXform.ll with
   some local changes in my tree.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46306 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp