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.
Paths
| Differential D150094
[KnownBits] Improve `KnownBits::udiv` ClosedPublic Authored by goldstein.w.n on May 7 2023, 11:57 PM.
Details
Summary We can more precisely determine the upper bits doing `MaxNum / As well, if the exact flag is set, we can sometimes determine some
Diff Detail
Event Timelinegoldstein.w.n added a parent revision: D150093: [KnownBits] Add implementation for `KnownBits::sdiv`.May 8 2023, 12:01 AM goldstein.w.n added a child revision: D150095: [ValueTracking] Pass `exact` flag to `KnownBits::udiv` in `computeKnownBits`. This revision is now accepted and ready to land.May 8 2023, 3:41 AM This revision was landed with ongoing or failed builds.May 16 2023, 4:59 PM Closed by commit rG7d05ab99edb9: [KnownBits] Improve `KnownBits::udiv` (authored by goldstein.w.n). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 520563 llvm/include/llvm/Support/KnownBits.h
llvm/lib/Support/KnownBits.cpp
llvm/test/Analysis/ValueTracking/knownbits-div.ll
llvm/unittests/Support/KnownBitsTest.cpp
|
Update comment?