[PATCH] D91877: [RISCV] Combine GREVI sequences

Fraser Cormack via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 20 09:22:24 PST 2020


frasercrmck created this revision.
frasercrmck added reviewers: craig.topper, asb, lewis-revill, luismarques, lenary.
Herald added subscribers: llvm-commits, NickHung, evandro, apazos, sameer.abuasal, pzheng, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya.
Herald added a project: LLVM.
frasercrmck requested review of this revision.
Herald added a subscriber: MaskRay.

This combine step performs the following type of transformation:

  rev.p a0, a0   # grevi a0, a0, 0b01
  rev2.n a0, a0  # grevi a0, a0, 0b10
  -->
  rev.n a0, a0   # grevi a0, a0, 0b11


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D91877

Files:
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/test/CodeGen/RISCV/rv32Zbp.ll
  llvm/test/CodeGen/RISCV/rv64Zbp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91877.306712.patch
Type: text/x-patch
Size: 12910 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201120/a60cbdc8/attachment-0001.bin>


More information about the llvm-commits mailing list