]> granicus.if.org Git - llvm/commit
[DAGCombine] Match more patterns for half word bswap
authorAmaury Sechet <deadalnix@gmail.com>
Sun, 6 Oct 2019 14:14:55 +0000 (14:14 +0000)
committerAmaury Sechet <deadalnix@gmail.com>
Sun, 6 Oct 2019 14:14:55 +0000 (14:14 +0000)
commit778c5716972a66a692b96c6c8366e8c5d9a7cb3d
tree3c93312277d3e427ff589afb31c668ca205f74d5
parent89f7822fcfcf7527e93eb307d19d99db87cf31f8
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373850 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/bswap_tree.ll