[PATCH] D120648: [DAGCombine] fold (bswap(srl (bswap c), x)) -> (shl c, x)
Chenbing.Zheng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 10 19:04:37 PST 2022
Chenbing.Zheng updated this revision to Diff 414560.
Chenbing.Zheng retitled this revision from "[RISCV] DAGcombine fold (bswap(srl (bswap c), x)) -> (shl c, x)" to "[DAGCombine] fold (bswap(srl (bswap c), x)) -> (shl c, x)".
Chenbing.Zheng added a comment.
Herald added a subscriber: pengfei.
add tests
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D120648/new/
https://reviews.llvm.org/D120648
Files:
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/RISCV/bswap-bitreverse.ll
llvm/test/CodeGen/RISCV/bswap-srli-bswap.ll
llvm/test/CodeGen/X86/combine-bswap.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120648.414560.patch
Type: text/x-patch
Size: 8794 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220311/2db2ebe5/attachment.bin>
More information about the llvm-commits
mailing list