[PATCH] D149198: [DAGCombiner] Make is so that `udiv` can be folded with `(select c, NonZero, 1)`
Noah Goldstein via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 25 14:27:38 PDT 2023
goldstein.w.n created this revision.
goldstein.w.n added reviewers: RKSimon, craig.topper, pengfei.
Herald added subscribers: luke, frasercrmck, ecnelises, luismarques, apazos, sameer.abuasal, s.egerton, Jim, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya.
Herald added a project: All.
goldstein.w.n requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, MaskRay.
Herald added a project: LLVM.
This is done by allowing speculation of `udiv` if we can prove the
denominator is non-zero.
https://alive2.llvm.org/ce/z/VNCt_q
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D149198
Files:
llvm/include/llvm/CodeGen/SelectionDAG.h
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/RISCV/rvv/vdivu-sdnode.ll
llvm/test/CodeGen/X86/divrem-by-select.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149198.516914.patch
Type: text/x-patch
Size: 4529 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230425/d7673700/attachment.bin>
More information about the llvm-commits
mailing list