[KnownBits] Cleanup some misspelling / logic in {u,s}div
authorNoah Goldstein <goldstein.w.n@gmail.com>
Sun, 28 May 2023 16:20:44 +0000 (11:20 -0500)
committerNoah Goldstein <goldstein.w.n@gmail.com>
Tue, 6 Jun 2023 20:14:10 +0000 (15:14 -0500)
commit8b2767f25708c8e9c1bc5682ee60bc3eb6754424
tree82bff0af935fc5581d64e71ec97c256fb67d3b3a
parent2a8df8d0b9e1cf132862aa8782bb99b4039feb89
[KnownBits] Cleanup some misspelling / logic in {u,s}div

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.

Differential Revision: https://reviews.llvm.org/D150921
llvm/lib/Support/KnownBits.cpp