[DAGCombiner] Remove mostly redundant calls to AddToWorklist
authorAmaury Sechet <deadalnix@gmail.com>
Wed, 21 Aug 2019 18:51:08 +0000 (18:51 +0000)
committerAmaury Sechet <deadalnix@gmail.com>
Wed, 21 Aug 2019 18:51:08 +0000 (18:51 +0000)
commitc0f190a0484b56e6d546e13b101b3662b253d6ea
treed940e72f17972ae77c4cd7311c4a943fad606cd1
parent84b762af3b54aeeb0bc064d733388144f0344d7e
[DAGCombiner] Remove mostly redundant calls to AddToWorklist

Summary:
These calls change the order in which some nodes are processed and so have an effect on codegen.

The change in fixup-bw-copy.ll is due to (and (load anyext)) gets transformed into (load zext) while previously the and was removed by SimplifyDemandedBits, so the (load anyext) remained.

Reviewers: craig.topper, efriedma, RKSimon, lebedev.ri

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D66543

llvm-svn: 369561
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/X86/fixup-bw-copy.ll
llvm/test/CodeGen/X86/load-combine.ll