[PATCH] D120648: [DAGCombine] fold (bswap(srl (bswap c), 8*x)) -> (shl c, 8*x)

Chenbing.Zheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 17 01:36:04 PDT 2022


Chenbing.Zheng updated this revision to Diff 416091.
Chenbing.Zheng retitled this revision from "[DAGCombine]  fold (bswap(srl (bswap c), x)) -> (shl c, x)" to "[DAGCombine]  fold (bswap(srl (bswap c), 8*x)) -> (shl c, 8*x)".
Chenbing.Zheng added a comment.

address comments


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-srli-bswap.ll
  llvm/test/CodeGen/X86/combine-bswap.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120648.416091.patch
Type: text/x-patch
Size: 10408 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220317/25ce5dc4/attachment.bin>


More information about the llvm-commits mailing list