[DAGCombine] Match more patterns for half word bswap
authorAmaury Sechet <deadalnix@gmail.com>
Thu, 10 Oct 2019 13:20:10 +0000 (13:20 +0000)
committerAmaury Sechet <deadalnix@gmail.com>
Thu, 10 Oct 2019 13:20:10 +0000 (13:20 +0000)
commitaaf050789664a5e5067b5a14ef31ed9eb89dc360
tree2047c149eef8047f3f9861b59c49cd796d3f30f1
parentdfd2b6f07fc40a190335f580d8a965bbebfe94df
[DAGCombine] Match more patterns for half word bswap

Summary: It ensures that the bswap is generated even when a part of the subtree already matches a bswap transform.

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

Subscribers: llvm-commits

Tags: #llvm

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

llvm-svn: 374340
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/X86/bswap_tree.ll