[PATCH] D108447: [RISCV] Implement BuildSDIVPow2, use cmov to lower sdiv pow2.
Jianjian Guan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 23 01:48:26 PDT 2021
jacquesguan updated this revision to Diff 368047.
jacquesguan added a comment.
Do not perform this transform if the divisor is larger than 12-bits imm or i128.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D108447/new/
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.368047.patch
Type: text/x-patch
Size: 13560 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210823/22948ea6/attachment.bin>
More information about the llvm-commits
mailing list