diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2018-07-19 09:12:32 +0000 |
---|---|---|
committer | Aldy Hernandez <aldyh@gcc.gnu.org> | 2018-07-19 09:12:32 +0000 |
commit | 3bb1161faf370fb5f6c8745e2c7d4d60cdc30835 (patch) | |
tree | 207eeddd30feb310bbc8f4339783c1b9a6aefd4e /gcc/gimple-fold.c | |
parent | 30ae6662408271f96a97d28f684022c413b71063 (diff) | |
download | gcc-3bb1161faf370fb5f6c8745e2c7d4d60cdc30835.zip gcc-3bb1161faf370fb5f6c8745e2c7d4d60cdc30835.tar.gz gcc-3bb1161faf370fb5f6c8745e2c7d4d60cdc30835.tar.bz2 |
wide-int.h (widest2_int): New.
* wide-int.h (widest2_int): New.
* gimple-fold.c (arith_overflowed_p): Use it.
* tree.h (widest2_int_cst): New.
* tree-vrp.c (wide_int_binop_overflow): Rename from
vrp_int_const_binop.
Rewrite to work on trees.
(extract_range_from_multiplicative_op_1): Abstract code to...
(wide_int_range_min_max): ...here.
(wide_int_range_cross_product): ...and here.
(extract_range_from_binary_expr_1): Abstract overflow code to...
(wide_int_range_cross_product_wrapping): ...here.
* tree-vrp.h (wide_int_range_cross_product): New.
(wide_int_range_cross_product_wrapping): New.
From-SVN: r262874
Diffstat (limited to 'gcc/gimple-fold.c')
-rw-r--r-- | gcc/gimple-fold.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/gcc/gimple-fold.c b/gcc/gimple-fold.c index a6b4283..027ca4d 100644 --- a/gcc/gimple-fold.c +++ b/gcc/gimple-fold.c @@ -3986,9 +3986,6 @@ bool arith_overflowed_p (enum tree_code code, const_tree type, const_tree arg0, const_tree arg1) { - typedef FIXED_WIDE_INT (WIDE_INT_MAX_PRECISION * 2) widest2_int; - typedef generic_wide_int <wi::extended_tree <WIDE_INT_MAX_PRECISION * 2> > - widest2_int_cst; widest2_int warg0 = widest2_int_cst (arg0); widest2_int warg1 = widest2_int_cst (arg1); widest2_int wres; |