When replacing a node in SimplifyDemandedBits, if the old node used any
authorChris Lattner <sabre@nondot.org>
Wed, 18 Apr 2007 03:05:22 +0000 (03:05 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 18 Apr 2007 03:05:22 +0000 (03:05 +0000)
commitec06e9a6707b9b00889e34ebad7cd3f20cb70bb6
treebabffbdace659951b5d1aa0729b2af1db057c5bf
parent1e6cf8630fa879c471c8623d90e3382b1344b80b
When replacing a node in SimplifyDemandedBits, if the old node used any
single-use nodes, they will be dead soon.  Make sure to remove them before
processing other nodes.  This implements CodeGen/X86/shl_elim.ll

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