Re: [PATCH 4/5] Sanitize irange::num_pairs

2023-03-01 Thread Aldy Hernandez via Gcc-patches
I would prefer not touching this as it was intended, and about to be removed. However, if we have actual regressions or missed optimizations because of the current behavior I could be convinced otherwise. Aldy On 2/28/23 14:47, Richard Biener via Gcc-patches wrote: irange::num_pairs has odd

[PATCH 4/5] Sanitize irange::num_pairs

2023-02-28 Thread Richard Biener via Gcc-patches
irange::num_pairs has odd behavior for VR_ANTI_RANGE where it claims there are two pairs when there's actually only one. The following is now able to get rid of this, also fixing irange::legacy_upper_bound which special-cased ~[-INF, up] to return +INF instead of properly doing that when up is not