Re: [PATCH] check undefine_p for one more vr

2023-09-20 Thread Jiufu Guo
Hi, Richard Biener writes: >> Am 21.09.2023 um 05:10 schrieb Jiufu Guo : >> >> Hi, >> >> The root cause of PR111355 and PR111482 is missing to check if vr0 >> is undefined_p before call vr0.lower_bound. >> >> In the pattern "(X + C) / N", >> >>(if (INTEGRAL_TYPE_P (type) >> &&

Re: [PATCH] check undefine_p for one more vr

2023-09-20 Thread Richard Biener
> Am 21.09.2023 um 05:10 schrieb Jiufu Guo : > > Hi, > > The root cause of PR111355 and PR111482 is missing to check if vr0 > is undefined_p before call vr0.lower_bound. > > In the pattern "(X + C) / N", > >(if (INTEGRAL_TYPE_P (type) > && get_range_query (cfun)->range_of_expr

[PATCH] check undefine_p for one more vr

2023-09-20 Thread Jiufu Guo
Hi, The root cause of PR111355 and PR111482 is missing to check if vr0 is undefined_p before call vr0.lower_bound. In the pattern "(X + C) / N", (if (INTEGRAL_TYPE_P (type) && get_range_query (cfun)->range_of_expr (vr0, @0)) (if (...) (plus (op @0 @2) {