diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2019-11-13 16:03:27 +0000 |
---|---|---|
committer | Aldy Hernandez <aldyh@gcc.gnu.org> | 2019-11-13 16:03:27 +0000 |
commit | 5d46287769a5224d7d3495b54e64da25fc76f01a (patch) | |
tree | 2f3e30c5b6cc304056ebd319776479c3f80510ee /gcc/ipa-prop.c | |
parent | 7b521fbd43b3cbaf4313c7719bed72d4de3b49a9 (diff) | |
download | gcc-5d46287769a5224d7d3495b54e64da25fc76f01a.zip gcc-5d46287769a5224d7d3495b54e64da25fc76f01a.tar.gz gcc-5d46287769a5224d7d3495b54e64da25fc76f01a.tar.bz2 |
Rewrite value_range constructors to the value_range_kind is at the end, and defaults to VR_RANGE.
Rewrite value_range constructors to the value_range_kind is at the
end, and defaults to VR_RANGE. Similarly for set() methods.
From-SVN: r278148
Diffstat (limited to 'gcc/ipa-prop.c')
-rw-r--r-- | gcc/ipa-prop.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c index 35f0dbb..312b2108 100644 --- a/gcc/ipa-prop.c +++ b/gcc/ipa-prop.c @@ -1822,9 +1822,9 @@ ipa_get_value_range (value_range *tmp) value_ranges. */ static value_range * -ipa_get_value_range (enum value_range_kind type, tree min, tree max) +ipa_get_value_range (enum value_range_kind kind, tree min, tree max) { - value_range tmp (type, min, max); + value_range tmp (min, max, kind); return ipa_get_value_range (&tmp); } @@ -1914,16 +1914,16 @@ ipa_compute_jump_functions_for_edge (struct ipa_func_body_info *fbi, else { wide_int min, max; - value_range_kind type; + value_range_kind kind; if (TREE_CODE (arg) == SSA_NAME && param_type - && (type = get_range_info (arg, &min, &max)) - && (type == VR_RANGE || type == VR_ANTI_RANGE)) + && (kind = get_range_info (arg, &min, &max)) + && (kind == VR_RANGE || kind == VR_ANTI_RANGE)) { value_range resvr; - value_range tmpvr (type, - wide_int_to_tree (TREE_TYPE (arg), min), - wide_int_to_tree (TREE_TYPE (arg), max)); + value_range tmpvr (wide_int_to_tree (TREE_TYPE (arg), min), + wide_int_to_tree (TREE_TYPE (arg), max), + kind); range_fold_unary_expr (&resvr, NOP_EXPR, param_type, &tmpvr, TREE_TYPE (arg)); if (!resvr.undefined_p () && !resvr.varying_p ()) |