This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r142675 - in /branches/graphite/gcc: ChangeLog....
- From: spop at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Thu, 11 Dec 2008 09:50:00 -0000
- Subject: r142675 - in /branches/graphite/gcc: ChangeLog....
Author: spop
Date: Thu Dec 11 09:49:59 2008
New Revision: 142675
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142675
Log:
2008-12-11 Sebastian Pop <sebastian.pop@amd.com>
* testsuite/gcc.dg/graphite/scop-16.c: Test only scop specific info.
* testsuite/gcc.dg/graphite/scop-17.c: Same.
* testsuite/gcc.dg/graphite/block-5.c: New.
* testsuite/gcc.dg/graphite/block-6.c: New.
* testsuite/gcc.dg/graphite/pr37485.c: Clean dump file after.
* testsuite/gcc.dg/graphite/pr37684.c: Same.
* testsuite/gcc.dg/graphite/block-2.c: Same.
* graphite.c (struct ivtype_map_elt): New.
(debug_ivtype_elt, debug_ivtype_map_1, debug_ivtype_map,
new_ivtype_map_elt, ivtype_map_elt_info, eq_ivtype_map_elts,
gcc_type_for_cloog_iv): New.
(loop_iv_stack_patch_for_consts): Use the type of the induction
variable from the original loop, except for the automatically
generated loops, i.e., in the case of a strip-mined loop, in
which case there is no original loop: in that case just use
integer_type_node.
(new_graphite_bb): Initialize GBB_CLOOG_IV_TYPES.
(free_graphite_bb): Free GBB_CLOOG_IV_TYPES.
(clast_name_to_gcc): Accept params to be NULL.
(clast_to_gcc_expression): Take an extra parameter for the type.
Convert to that type all the expressions built by this function.
(gcc_type_for_clast_expr, gcc_type_for_clast_eq): New.
(graphite_translate_clast_equation): Compute the type of the
clast_equation before translating its LHS and RHS.
(clast_get_body_of_loop, gcc_type_for_iv_of_clast_loop): New.
(graphite_create_new_loop): Compute the type of the induction
variable before translating the lower and upper bounds and before
creating the induction variable.
(rename_variables_from_edge, rename_phis_end_scop): New.
(copy_bb_and_scalar_dependences): Call rename_phis_end_scop.
(sese_add_exit_phis_edge): Do not use integer_zero_node.
(find_cloog_iv_in_expr, compute_cloog_iv_types_1,
compute_cloog_iv_types): New.
(gloog): Call compute_cloog_iv_types before starting the
translation of the clast.
* graphite.h (struct graphite_bb): New field cloog_iv_types.
(GBB_CLOOG_IV_TYPES): New.
(debug_ivtype_map): Declared.
(oldiv_for_loop): New.
Added:
branches/graphite/gcc/testsuite/gcc.dg/graphite/block-5.c
branches/graphite/gcc/testsuite/gcc.dg/graphite/block-6.c
Modified:
branches/graphite/gcc/ChangeLog.graphite
branches/graphite/gcc/graphite.c
branches/graphite/gcc/graphite.h
branches/graphite/gcc/testsuite/gcc.dg/graphite/block-2.c
branches/graphite/gcc/testsuite/gcc.dg/graphite/pr37485.c
branches/graphite/gcc/testsuite/gcc.dg/graphite/pr37684.c
branches/graphite/gcc/testsuite/gcc.dg/graphite/scop-15.c
branches/graphite/gcc/testsuite/gcc.dg/graphite/scop-16.c
branches/graphite/gcc/testsuite/gcc.dg/graphite/scop-17.c