aboutsummaryrefslogtreecommitdiff
path: root/gcc/value-range.h
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2022-07-24 07:55:02 +0200
committerAldy Hernandez <aldyh@redhat.com>2022-07-24 17:00:51 +0200
commit8b8103dcd2624936bd1f56ac2ee63d1fb779a7e4 (patch)
tree63324e877c0b2e0b4f88025af9ae2ccbc1341b1a /gcc/value-range.h
parent164758b02c44cba66e00103c118c6a4b5f76a812 (diff)
downloadgcc-8b8103dcd2624936bd1f56ac2ee63d1fb779a7e4.zip
gcc-8b8103dcd2624936bd1f56ac2ee63d1fb779a7e4.tar.gz
gcc-8b8103dcd2624936bd1f56ac2ee63d1fb779a7e4.tar.bz2
Minor fixes to vr_values to not die on non integral types.
The legacy code in vr_values mostly works on integral types (with few exceptions such as some conversions from float). This patch makes vr_values::range_of_expr not die when asked for a range of an unsupported type. It also keeps the min/max simplification code from being called on non integrals, similarly to what many of the other assignment code is doing. This is all a nop on the current code, but will keep us from misbehaving when VRP starts working on non-integrals. Tested on x86-64 Linux. gcc/ChangeLog: * value-query.cc (range_query::get_value_range): Add assert. * vr-values.cc (vr_values::range_of_expr): Make sure we don't ICE on unsupported types in vr_values. (simplify_using_ranges::simplify): Same.
Diffstat (limited to 'gcc/value-range.h')
0 files changed, 0 insertions, 0 deletions