Chronically misspelled 'denominator' as 'denuminator' and a few other
cases.
On the logic side, no longer require RHS to be strictly positive in
sdiv. This in turn means we need to handle a possible zero denom
in the APInt division.
Paths
| Differential D150921
[KnownBits] Cleanup some misspelling / logic in {u,s}div ClosedPublic Authored by goldstein.w.n on May 18 2023, 5:37 PM.
Details Summary Chronically misspelled 'denominator' as 'denuminator' and a few other On the logic side, no longer require RHS to be strictly positive in
Diff Detail
Event Timelinegoldstein.w.n added a child revision: D150922: [KnownBits] Return `0` for poison {s,u}div inputs.May 18 2023, 5:39 PM goldstein.w.n mentioned this in D150093: [KnownBits] Add implementation for `KnownBits::sdiv`.May 18 2023, 5:42 PM goldstein.w.n added inline comments.
This revision is now accepted and ready to land.Jun 6 2023, 5:32 AM Closed by commit rG8b2767f25708: [KnownBits] Cleanup some misspelling / logic in {u,s}div (authored by goldstein.w.n). · Explain WhyJun 6 2023, 1:14 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 526344 llvm/lib/Support/KnownBits.cpp
|
@foad, re:
Since Denom now can be zero (result of not using strictlypositive), we can't just grab the sign from the result so keeping as optional bool