[ValueTracking] Add better support for ConstantRange(Shl)
1) If LHS is constant:
- The low bits of the LHS is set, the lower bound is non-zero
- The upper bound can be capped at popcount(LHS) high bits
2) If RHS is constant:
- The upper bound can be capped at (Width - RHS) high bits
parent
457308a4
Please register or sign in to comment