Re: [PATCH 3/5] Avoid upper/lower_bound (1) on VR_ANTI_RANGE

2023-03-01 Thread Aldy Hernandez via Gcc-patches
On 2/28/23 14:47, Richard Biener via Gcc-patches wrote: simplify_using_ranges::two_valued_val_range_p has odd code to verify that an anti-range is two-valued which relies on num_pairs () returning two for anti-ranges despite there's only one pair and relying on lower/upper_bound treating that

[PATCH 3/5] Avoid upper/lower_bound (1) on VR_ANTI_RANGE

2023-02-28 Thread Richard Biener via Gcc-patches
simplify_using_ranges::two_valued_val_range_p has odd code to verify that an anti-range is two-valued which relies on num_pairs () returning two for anti-ranges despite there's only one pair and relying on lower/upper_bound treating that argument specially. I cannot convince myself that's even cor