[PATCH] D150093: [KnownBits] Add implementation for `KnownBits::sdiv`
Noah Goldstein via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun May 7 23:57:23 PDT 2023
goldstein.w.n created this revision.
goldstein.w.n added reviewers: foad, nikic, RKSimon.
Herald added subscribers: StephenFan, hiraditya.
Herald added a project: All.
goldstein.w.n requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Can figure out some of the upper bits (similiar to `udiv`) if we know
the sign of the inputs.
As well, if we have the `exact` flag we can sometimes determine some
low-bits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D150093
Files:
llvm/include/llvm/Support/KnownBits.h
llvm/lib/Support/KnownBits.cpp
llvm/unittests/Support/KnownBitsTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150093.520268.patch
Type: text/x-patch
Size: 5085 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230508/c60ec38d/attachment.bin>
More information about the llvm-commits
mailing list