]> granicus.if.org Git - llvm/commit
[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)
commitba93daf285472d0304340f6fa7a24eab8a0f780a
treeb34716756c75bd7d7720d83e8dd8d631a5d45728
parent668d37b1ecaa0c198c148f9e5ba6a221aafe0a33
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369561 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/fixup-bw-copy.ll
test/CodeGen/X86/load-combine.ll