HomePhabricator

[KnownBits] Add min/max shift amount handling to shl/lshr/ashr KnownBits helpers

Authored by RKSimon on Mar 8 2021, 3:44 AM.

Description

[KnownBits] Add min/max shift amount handling to shl/lshr/ashr KnownBits helpers

Pulled out of the original D90479 patch - also includes the "impossible shift amount" filtering from computeKnownBitsFromShiftOperator.

Differential Revision: https://reviews.llvm.org/D90479