Canonicalize loop ivs before building scops.
commit7b836fb8c9e0e43e18f59ed18b4a0b9d43173a97
authorspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 22 Oct 2009 22:59:02 +0000 (22 22:59 +0000)
committerspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 22 Oct 2009 22:59:02 +0000 (22 22:59 +0000)
tree8aaab206cf1e16f8d858db717315d2694562d2c6
parent54eb01661c99831a712444c7669be5d9c664425d
Canonicalize loop ivs before building scops.

2009-10-22  Sebastian Pop  <sebastian.pop@amd.com>

* cfgloop.c (alloc_loop): Initialize loop->single_iv.
* cfgloop.h (struct loop): New field single_iv.

* graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): Do not use
loop->aux anymore: use loop->single_iv.
(graphite_loop_normal_form): Moved...
(build_graphite_loop_normal_form): Removed.
(gloog): Do not call build_graphite_loop_normal_form.
(free_aux_in_new_loops): Moved...
(mark_loops_parallel): Restructure.
* graphite-clast-to-gimple.h (free_aux_in_new_loops): Do not declare.
* graphite-sese-to-poly.c (graphite_loop_normal_form): ...here.
(scop_canonicalize_loops): New.
(build_poly_scop): Call scop_canonicalize_loops.
* graphite.c (free_aux_in_new_loops): ...here.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/graphite@153481 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog.graphite
gcc/cfgloop.c
gcc/cfgloop.h
gcc/graphite-clast-to-gimple.c
gcc/graphite-clast-to-gimple.h
gcc/graphite-sese-to-poly.c
gcc/graphite.c