[DAGCombine] add tests for bitreverse-shift optimization
authorChenbing Zheng <Chenbing.Zheng@streamcomputing.com>
Wed, 30 Mar 2022 01:50:28 +0000 (09:50 +0800)
committerChenbing Zheng <Chenbing.Zheng@streamcomputing.com>
Wed, 30 Mar 2022 01:50:28 +0000 (09:50 +0800)
commit780eb9f5864ff71afa8e2684c2aa2bcdb9bdfad7
tree6b56a5be1e0ff172e5fa42d5e52fde8bcad78ef2
parentb5783307543d6379d267f8a90c56a75f9e456395
[DAGCombine] add tests for bitreverse-shift optimization

This patch add some tests to show some optimization opportunities
for bitreverse-shift.

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D121507
llvm/test/CodeGen/RISCV/bitreverse-shift.ll [new file with mode: 0644]
llvm/test/CodeGen/X86/combine-bitreverse.ll