]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/vr-values.h
Add stmt context in simplify_using_ranges.
authorAndrew MacLeod <amacleod@redhat.com>
Fri, 25 Jun 2021 15:24:30 +0000 (11:24 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Tue, 29 Jun 2021 18:57:01 +0000 (14:57 -0400)
commita7e655ae4016eaf04e261ff32fc67a14ebb0e329
tree79247790befb4a60004473b51033f8063623ce04
parent8a8a7d332d5d01db5aea7336a36d9fd71a679fb1
Add stmt context in simplify_using_ranges.

There were places simplify_using_ranges was not utilzing the stmt context.

* vr-values.c (vr_values::vrp_stmt_computes_nonzero): Use stmt.
(simplify_using_ranges::op_with_boolean_value_range_p): Add a
statement for location context.
(check_for_binary_op_overflow): Ditto.
(simplify_using_ranges::get_vr_for_comparison): Ditto.
(simplify_using_ranges::compare_name_with_value): Ditto.
(simplify_using_ranges::compare_names): Ditto.
(vrp_evaluate_conditional_warnv_with_ops_using_ranges): Ditto.
(simplify_using_ranges::simplify_truth_ops_using_ranges): Ditto.
(simplify_using_ranges::simplify_min_or_max_using_ranges): Ditto.
(simplify_using_ranges::simplify_internal_call_using_ranges): Ditto.
(simplify_using_ranges::two_valued_val_range_p): Ditto.
(simplify_using_ranges::simplify): Ditto.
* vr-values.h: Adjust prototypes.
gcc/vr-values.c
gcc/vr-values.h