aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-ch.c
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2020-08-04 12:18:21 +0200
committerGiuliano Belinassi <giuliano.belinassi@usp.br>2020-08-17 15:08:17 -0300
commit1728d817ef6474d5d2935b9d597c9824197ac709 (patch)
tree2991930e6766f31b09afe6d5b8db167560f736dd /gcc/tree-ssa-loop-ch.c
parentd9afcbee7c045eb19bafb1913ce4422e16008e69 (diff)
downloadgcc-1728d817ef6474d5d2935b9d597c9824197ac709.zip
gcc-1728d817ef6474d5d2935b9d597c9824197ac709.tar.gz
gcc-1728d817ef6474d5d2935b9d597c9824197ac709.tar.bz2
Add statement context to get_value_range.
This is in line with the statement context that we have for get_value() in the substitute_and_fold_engine class. gcc/ChangeLog: * vr-values.c (vr_values::get_value_range): Add stmt param. (vr_values::extract_range_from_comparison): Same. (vr_values::extract_range_from_assignment): Pass stmt to extract_range_from_comparison. (vr_values::adjust_range_with_scev): Pass stmt to get_value_range. (simplify_using_ranges::vrp_evaluate_conditional): Add stmt param. Pass stmt to get_value_range. (simplify_using_ranges::vrp_visit_cond_stmt): Pass stmt to get_value_range. (simplify_using_ranges::simplify_abs_using_ranges): Same. (simplify_using_ranges::simplify_div_or_mod_using_ranges): Same. (simplify_using_ranges::simplify_bit_ops_using_ranges): Same. (simplify_using_ranges::simplify_cond_using_ranges_1): Same. (simplify_using_ranges::simplify_switch_using_ranges): Same. (simplify_using_ranges::simplify_float_conversion_using_ranges): Same. * vr-values.h (class vr_values): Add stmt arg to vrp_evaluate_conditional_warnv_with_ops. Add stmt arg to extract_range_from_comparison and get_value_range. (simplify_using_ranges::get_value_range): Add stmt arg.
Diffstat (limited to 'gcc/tree-ssa-loop-ch.c')
0 files changed, 0 insertions, 0 deletions