From: Aldy Hernandez Date: Tue, 4 Aug 2020 04:55:55 +0000 (+0200) Subject: Adjust get_range_info to use the base irange class. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=967c966f212a3a05ae88715231cd8dba1e452e2e;p=gcc.git Adjust get_range_info to use the base irange class. gcc/ChangeLog: * tree-ssanames.c (get_range_info): Use irange instead of value_range. * tree-ssanames.h (get_range_info): Same. --- diff --git a/gcc/tree-ssanames.c b/gcc/tree-ssanames.c index c143a93b072..d9432657e30 100644 --- a/gcc/tree-ssanames.c +++ b/gcc/tree-ssanames.c @@ -441,7 +441,7 @@ get_range_info (const_tree name, wide_int *min, wide_int *max) in a value_range VR. Returns the value_range_kind. */ enum value_range_kind -get_range_info (const_tree name, value_range &vr) +get_range_info (const_tree name, irange &vr) { tree min, max; wide_int wmin, wmax; diff --git a/gcc/tree-ssanames.h b/gcc/tree-ssanames.h index 47df4e40062..3395824e425 100644 --- a/gcc/tree-ssanames.h +++ b/gcc/tree-ssanames.h @@ -73,7 +73,7 @@ extern void set_range_info (tree, const value_range &); /* Gets the value range from SSA. */ extern enum value_range_kind get_range_info (const_tree, wide_int *, wide_int *); -extern enum value_range_kind get_range_info (const_tree, value_range &); +extern enum value_range_kind get_range_info (const_tree, irange &); extern void set_nonzero_bits (tree, const wide_int_ref &); extern wide_int get_nonzero_bits (const_tree); extern bool ssa_name_has_boolean_range (tree);