[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)
commit24ceb0ce660baeee875cd560480288b65c2ba133
tree80a50790f5b0a41764f844875d6335a8f487734c
parent0fb2013192e23a8f5a46c752a21fd9282737e4af
[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.

llvm-svn: 213505
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp