wide-int-range.cc (wide_int_range_abs): New.
authorAldy Hernandez <aldyh@redhat.com>
Tue, 21 Aug 2018 06:27:14 +0000 (06:27 +0000)
committerAldy Hernandez <aldyh@gcc.gnu.org>
Tue, 21 Aug 2018 06:27:14 +0000 (06:27 +0000)
commit70eff705513d3d3cd387a7b54af5e0818727a8f0
treefc819ab84ec6dd98e2d5b3f7999a9b4c3e138c16
parent316a03a633443f0201a980f30f67aac4aaf43e28
wide-int-range.cc (wide_int_range_abs): New.

* wide-int-range.cc (wide_int_range_abs): New.
(wide_int_range_order_set): Rename from wide_int_range_min_max.
* wide-int-range.h (wide_int_range_abs): New.
(wide_int_range_min_max): New.
* tree-vrp.c (extract_range_from_unary_expr): Rewrite ABS_EXPR
case to call wide_int_range_abs.
Rewrite MIN/MAX_EXPR to call wide_int_range_min_max.
(extract_range_from_abs_expr): Delete.

From-SVN: r263685
gcc/ChangeLog
gcc/tree-vrp.c
gcc/wide-int-range.cc
gcc/wide-int-range.h