tree-ssa-loop-ivopts.c: Include tree-affine.h.
authorZdenek Dvorak <dvorakz@suse.cz>
Thu, 14 Dec 2006 02:05:20 +0000 (03:05 +0100)
committerZdenek Dvorak <rakdver@gcc.gnu.org>
Thu, 14 Dec 2006 02:05:20 +0000 (02:05 +0000)
commit73f30c6308cc7e246841e83969a1f4551bac3d3d
tree33e4fecfec131da30950f9a5e548ab0f2c428746
parent904e0e974d06c1cfae8941447d0dd207b9b87fd2
tree-ssa-loop-ivopts.c: Include tree-affine.h.

* tree-ssa-loop-ivopts.c: Include tree-affine.h.
(divide): Removed.
(constant_multiple_of): Fix order of operators for division.
(aff_combination_const, aff_combination_elt, aff_combination_scale,
aff_combination_add_elt, aff_combination_add, aff_combination_convert,
tree_to_aff_combination, add_elt_to_tree, unshare_aff_combination,
aff_combination_to_tree): Moved to tree-affine.c and made to work with
double_int coefficients.
(get_computation_aff, get_computation_at): Work with double_int
coefficients.
(get_computation_cost_at): Do not use divide.
(rewrite_use_nonlinear_expr, rewrite_use_address, rewrite_use_compare):
Assert that expressing the computation did not fail.
* tree-ssa-address.c: Include tree-affine.h.
(add_to_parts, most_expensive_mult_to_index, addr_to_parts,
create_mem_ref): Work with double_int coefficients.
* tree-affine.c: New file.
* tree-affine.h: New file.
* tree-flow.h (struct affine_tree_combination): Removed.
* Makefile.in (tree-affine.o): Add.
(tree-ssa-address.o, tree-ssa-loop-ivopts.o): Add tree-affine.h
dependency.

From-SVN: r119854
gcc/ChangeLog
gcc/Makefile.in
gcc/tree-affine.c [new file with mode: 0644]
gcc/tree-affine.h [new file with mode: 0644]
gcc/tree-flow.h
gcc/tree-ssa-address.c
gcc/tree-ssa-loop-ivopts.c