[PATCH] D91040: [RISCV] Make ctlz/cttz cheap to speculatively execute so CodeGenPrepare won't insert a zero check.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 8 13:55:42 PST 2020


craig.topper created this revision.
craig.topper added reviewers: asb, luismarques, lenary, frasercrmck, lewis-revill, PaoloS.
Herald added subscribers: 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.
craig.topper requested review of this revision.
Herald added a subscriber: MaskRay.

Add additional isel patterns for ctzw/clzw instructions.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D91040

Files:
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/lib/Target/RISCV/RISCVISelLowering.h
  llvm/lib/Target/RISCV/RISCVInstrInfoB.td
  llvm/test/CodeGen/RISCV/rv32Zbb.ll
  llvm/test/CodeGen/RISCV/rv64Zbb.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91040.303735.patch
Type: text/x-patch
Size: 6525 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201108/743bdd5a/attachment.bin>


More information about the llvm-commits mailing list