diff options
author | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-11-25 05:24:14 +0000 |
---|---|---|
committer | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-11-25 05:24:14 +0000 |
commit | 314c9614ae50225ca91f109c5ff98a1661baa7fd (patch) | |
tree | 43aa80487a924b18f9032cc266bc872122717ff4 /gcc/graphite.c | |
parent | 71bc7526fbb57c0709a7b9b5483afd4733f036d4 (diff) | |
download | gcc-314c9614ae50225ca91f109c5ff98a1661baa7fd.tar.gz |
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/trunk@154624 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/graphite.c')
-rw-r--r-- | gcc/graphite.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/graphite.c b/gcc/graphite.c index 8cb61d2c36e..291a1fea4b5 100644 --- a/gcc/graphite.c +++ b/gcc/graphite.c @@ -220,6 +220,22 @@ graphite_initialize (void) return true; } +/* Free loop->aux in newly created loops by translate_clast. */ + +static void +free_aux_in_new_loops (void) +{ + loop_p loop; + loop_iterator li; + + FOR_EACH_LOOP (li, loop, 0) + if (loop->aux) + { + free (loop->aux); + loop->aux = NULL; + } +} + /* Finalize graphite: perform CFG cleanup when NEED_CFG_CLEANUP_P is true. */ |