[PATCH] D114856: [RISCV] Override TargetLowering::BuildSDIVPow2 to generate SELECT
wangpc via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 1 01:49:55 PST 2021
pcwang-thead created this revision.
pcwang-thead added reviewers: asb, craig.topper.
Herald added subscribers: VincentWu, luke957, achieveartificialintelligence, vkmr, frasercrmck, evandro, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya.
pcwang-thead requested review of this revision.
Herald added subscribers: llvm-commits, MaskRay.
Herald added a project: LLVM.
When `Zbt` is enabled, we can generate SELECT for division by power
of 2, so that there is no data dependency.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D114856
Files:
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/lib/Target/RISCV/RISCVISelLowering.h
llvm/test/CodeGen/RISCV/rv32zbt-div-pow2.ll
llvm/test/CodeGen/RISCV/rv64zbt-div-pow2.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114856.390952.patch
Type: text/x-patch
Size: 5465 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211201/c71078ac/attachment.bin>
More information about the llvm-commits
mailing list