[SDAG] Rather than using a narrow test against the one dummy node on the
authorChandler Carruth <chandlerc@gmail.com>
Mon, 21 Jul 2014 08:32:31 +0000 (08:32 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 21 Jul 2014 08:32:31 +0000 (08:32 +0000)
commit0c991ec57a12e3196b934d9b46b8b5ec69ac645c
tree10d083cc8f5140d715713d0b1f525974927d6b89
parent19e39c6f12329eb5f23c127c6b1495376a01ad5a
[SDAG] Rather than using a narrow test against the one dummy node on the
stack, filter all handle nodes from the DAG combiner worklist.

This will also handle cases where other handle nodes might be
(erroneously) added to the worklist and then cause bugs and explosions
when deleted. For example, when running the legalizer within the DAG
combiner, there are times when other handle nodes are used and can end
up here.

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