OSDN Git Service

[X86] Remove some unnecessary explicit calls to DCI.AddToWorkList.
authorCraig Topper <craig.topper@intel.com>
Thu, 26 Jul 2018 03:20:27 +0000 (03:20 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 26 Jul 2018 03:20:27 +0000 (03:20 +0000)
commitcbe902c02ccf166f8d3b361f5ba0d3c910bb683b
treefbf752a8999c55ce9865a29ec47aaceb39b217a6
parentf4c9d7c0dc4517ed009f40231a0ff9da44e739c4
[X86] Remove some unnecessary explicit calls to DCI.AddToWorkList.

These calls were making sure some newly created nodes were added to worklist, but the DAGCombiner has internal support for ensuring it has visited all nodes. Any time it visits a node it ensures the operands have been queued to be visited as well. This means if we only need to return the last new node. The DAGCombiner will take care of adding its inputs thus walking backwards through all the new nodes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337996 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp