[PATCH] D108447: [RISCV] Implement BuildSDIVPow2, use cmov to lower sdiv pow2.

Jianjian Guan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 20 00:22:40 PDT 2021


jacquesguan created this revision.
jacquesguan added reviewers: craig.topper, asb, luismarques, frasercrmck.
Herald added subscribers: vkmr, evandro, apazos, sameer.abuasal, 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.
jacquesguan requested review of this revision.
Herald added subscribers: llvm-commits, MaskRay.
Herald added a project: LLVM.

If extension Zbt is enabled, we could use cmov to lower sdiv pow2.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D108447

Files:
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/lib/Target/RISCV/RISCVISelLowering.h
  llvm/test/CodeGen/RISCV/sdiv-pow2.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108447.367726.patch
Type: text/x-patch
Size: 8681 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210820/8e7da8ef/attachment.bin>


More information about the llvm-commits mailing list