OSDN Git Service

PR tree-optimization/30322
authorrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Jan 2007 00:44:26 +0000 (00:44 +0000)
committerrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Jan 2007 00:44:26 +0000 (00:44 +0000)
commitcf6610631acc27d62e0cd6b40a0ba02b4e1a781b
treef1798b70409e7522ae71bb941b4d1af411b2db36
parent70409e7cb60ff86020a3fa9450853512bfa9235e
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
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/loop-21.c [new file with mode: 0644]
gcc/tree-affine.c
gcc/tree-affine.h
gcc/tree-ssa-loop-ivopts.c