Before the fix to the ranger dependency chain yesterday (commit
7f0cfeb1) I thought an ICE I was seeing was due to my get_range_query
patchet. This was not the case, but this small change crept in while I
was debugging the failure.
I'm reverting the change as was approved.
Tested on x86-64 Linux.
gcc/ChangeLog:
* vr-values.c (simplify_conversion_using_ranges): Use
get_range_query instead of get_global_range_query.
value_range vr;
if (!INTEGRAL_TYPE_P (TREE_TYPE (innerop)))
return false;
- get_global_range_query ()->range_of_expr (vr, innerop, stmt);
+ get_range_query (cfun)->range_of_expr (vr, innerop, stmt);
if (vr.undefined_p () || vr.varying_p ())
return false;
innermin = widest_int::from (vr.lower_bound (), TYPE_SIGN (TREE_TYPE (innerop)));