diff options
author | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-01-10 00:44:26 +0000 |
---|---|---|
committer | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-01-10 00:44:26 +0000 |
commit | cf6610631acc27d62e0cd6b40a0ba02b4e1a781b (patch) | |
tree | f1798b70409e7522ae71bb941b4d1af411b2db36 /gcc/tree-affine.h | |
parent | 70409e7cb60ff86020a3fa9450853512bfa9235e (diff) | |
download | gcc-cf6610631acc27d62e0cd6b40a0ba02b4e1a781b.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120630 138bc75d-0d04-0410-961f-82ee72b054a4
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 b83a501c868..51af99acec2 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); |