tree-vrp.c (get_single_symbol): Add assert that we don't get overflowed constants...
authorRichard Biener <rguenther@suse.de>
Tue, 9 May 2017 08:14:44 +0000 (08:14 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 9 May 2017 08:14:44 +0000 (08:14 +0000)
commit39032dee86e21245131591df3d876f114a1768c6
tree30f34d56161a5d9f19e05404acce2191ea551a55
parent4ca2e6ec7cb634b3f2598026be638b768c926681
tree-vrp.c (get_single_symbol): Add assert that we don't get overflowed constants as invariant part.

2017-05-09  Richard Biener  <rguenther@suse.de>

* tree-vrp.c (get_single_symbol): Add assert that we don't
get overflowed constants as invariant part.
(compare_values_warnv): Add comment before the TREE_NO_WARNING
checks.  Use wi::cmp instead of recursing for integer constants.
(compare_values): Just ignore whether we assumed undefined
overflow instead of failing the compare.
(extract_range_for_var_from_comparison_expr): Add comment before the
TREE_NO_WARNING sets.
(test_for_singularity): Likewise.
(extract_range_from_comparison): Do not disable optimization
when we assumed undefined overflow.
(extract_range_basic): Remove init of unused var.

From-SVN: r247781
gcc/ChangeLog
gcc/tree-vrp.c