[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)
commit370bdd3a0f12629789d3b18b4bea178ee5cf2a23
tree866f954c59a21e933e8733024d520be2265fa54b
parente58e9907aca25316afad9573df077325f717ef18
[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.

llvm-svn: 337996
llvm/lib/Target/X86/X86ISelLowering.cpp