2 Commits

Author SHA1 Message Date
Noah Goldstein
d81db0e5f5 [KnownBits] Implement knownbits lshr/ashr with exact flag
The exact flag basically allows us to set an upper bound on shift
amount when we have a known 1 in `LHS`.

Typically we deduce exact using knownbits (on non-exact incoming
shifts), so this is particularly impactful, but may be useful in some
circumstances.

Closes #84254
2024-03-11 15:51:07 -05:00
Noah Goldstein
f19d9e1617 [KnownBits] Add test for computing more information for lshr/ashr with exact flag; NFC 2024-03-11 15:51:06 -05:00