Revert r338222 "[DAGCombiner] Remove unnecessary calls to AddToWorklist."
authorCraig Topper <craig.topper@intel.com>
Mon, 30 Jul 2018 20:27:10 +0000 (20:27 +0000)
committerCraig Topper <craig.topper@intel.com>
Mon, 30 Jul 2018 20:27:10 +0000 (20:27 +0000)
commitb94d5f853b9da2285611a6ef1bfb0f578ef1d4e5
tree47452cb4c0e2780f2fc243cc677ce5e138bdb9fb
parent1c7160e85fab7a92018f3b8837ff564935b61fa8
Revert r338222 "[DAGCombiner] Remove unnecessary calls to AddToWorklist."

Thinking about it more it might be possible for the later nodes to be folded in getNode in such a way that the other created nodes are left dead. This can cause use counts to be incorrect on nodes that aren't dead.

So its probably safer to leave this alone.

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