Re: [COMMITTED] PR tee-optimization/120277 - Check for casts becoming UNDEFINED.

2025-05-16 Thread Andrew MacLeod
On 5/16/25 02:35, Richard Biener wrote: On Thu, May 15, 2025 at 7:02 PM Andrew MacLeod wrote: Recent changes to get_range_from_bitmask can sometimes turn a small range into an undefined one if the bitmask indicates the bits make all values impossible. range_cast () was not expecting this and c

Re: [COMMITTED] PR tee-optimization/120277 - Check for casts becoming UNDEFINED.

2025-05-15 Thread Richard Biener
On Thu, May 15, 2025 at 7:02 PM Andrew MacLeod wrote: > > Recent changes to get_range_from_bitmask can sometimes turn a small > range into an undefined one if the bitmask indicates the bits make all > values impossible. > > range_cast () was not expecting this and checks for UNDEFINED before > pef

[COMMITTED] PR tee-optimization/120277 - Check for casts becoming UNDEFINED.

2025-05-15 Thread Andrew MacLeod
Recent changes to get_range_from_bitmask can sometimes turn a small range into an undefined one if the bitmask indicates the bits make all values impossible. range_cast () was not expecting this and checks for UNDEFINED before peforming the cast.   It also needs to check for it after the cast