On 2/27/23 06:58, Richard Biener via Gcc-patches wrote:
After fixing PR107561 the following avoids looking at VR_ANTI_RANGE
ranges where it doesn't seem obvious the code does the correct
thing here (lower_bound and upper_bound do not work as expected).

Bootstrapped and tested on x86_64-unknown-linux-gnu.

OK?

Thanks,
Richard.

        * gimple-ssa-sprintf.cc (get_int_range): Avoid VR_ANTI_RANGE
        by using range_int_cst_p.
        (format_integer): Likewise.
        (handle_printf_call): Guard against VR_ANTI_RANGE.
        * graphite-sese-to-poly.cc (add_param_constraints): Likewise.
        * tree-ssa-strlen.cc (set_strlen_range): Likewise.
LGTM.
jeff

Reply via email to