[PATCH] D150094: [KnownBits] Improve `KnownBits::udiv`
Noah Goldstein via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun May 7 23:57:34 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.
We can more precisely determine the upper bits doing `MaxNum /
MinDenum` as opposed to only using the MSB.
As well, if the `exact` flag is set, we can sometimes determine some
of the low-bits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D150094
Files:
llvm/include/llvm/Support/KnownBits.h
llvm/lib/Support/KnownBits.cpp
llvm/test/Analysis/ValueTracking/knownbits-div.ll
llvm/unittests/Support/KnownBitsTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150094.520269.patch
Type: text/x-patch
Size: 4863 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230508/3bc096fc/attachment.bin>
More information about the llvm-commits
mailing list