diff options
author | Zdenek Dvorak <dvorakz@suse.cz> | 2007-01-10 01:44:26 +0100 |
---|---|---|
committer | Zdenek Dvorak <rakdver@gcc.gnu.org> | 2007-01-10 00:44:26 +0000 |
commit | 7e2ac86c349ecfe90cc98f24230659136806fefa (patch) | |
tree | f1798b70409e7522ae71bb941b4d1af411b2db36 /gcc/tree-affine.h | |
parent | 92c25b55d49ef9ba4c273ec543ad23b684389123 (diff) | |
download | gcc-7e2ac86c349ecfe90cc98f24230659136806fefa.zip gcc-7e2ac86c349ecfe90cc98f24230659136806fefa.tar.gz gcc-7e2ac86c349ecfe90cc98f24230659136806fefa.tar.bz2 |
re PR middle-end/30322 (((-i-1) + i) +1) is turned into ~i + (i+1) and never into 0 on the tree level)
PR tree-optimization/30322
* tree-ssa-loop-ivopts.c (fold_affine_expr, iv_value): Removed.
(cand_value_at): Return the value as aff_tree.
(may_eliminate_iv): Convert the bound from aff_tree to tree.
* tree-affine.c (aff_combination_add_cst, aff_combination_add_product,
aff_combination_mult): New functions.
(aff_combination_add): Use aff_combination_add_cst.
(aff_combination_convert): Allow conversions to a wider type.
(tree_to_aff_combination): Handle BIT_NOT_EXPR.
* tree-affine.h (aff_combination_mult): Declare.
* gcc.dg/tree-ssa/loop-21.c: New test.
From-SVN: r120630
Diffstat (limited to 'gcc/tree-affine.h')
-rw-r--r-- | gcc/tree-affine.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree-affine.h b/gcc/tree-affine.h index b83a501..51af99a 100644 --- a/gcc/tree-affine.h +++ b/gcc/tree-affine.h @@ -62,6 +62,7 @@ double_int double_int_ext_for_comb (double_int, aff_tree *); void aff_combination_const (aff_tree *, tree, double_int); void aff_combination_elt (aff_tree *, tree, tree); void aff_combination_scale (aff_tree *, double_int); +void aff_combination_mult (aff_tree *, aff_tree *, aff_tree *); void aff_combination_add (aff_tree *, aff_tree *); void aff_combination_add_elt (aff_tree *, tree, double_int); void aff_combination_remove_elt (aff_tree *, unsigned); |