From c80a540338e5809cdf058b13e23e30585219a0fa Mon Sep 17 00:00:00 2001 From: Sebastian Pop Date: Wed, 31 Mar 2010 18:37:13 +0000 Subject: canonicalize_loop_ivs should add the IV bump in loop->header. 2010-03-16 Sebastian Pop * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump in loop->header. * tree-flow.h (canonicalize_loop_ivs): Updated declaration. * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch. * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter to switch between adding the IV bump in loop->latch or in loop->header. From-SVN: r157885 --- gcc/graphite-sese-to-poly.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/graphite-sese-to-poly.c') diff --git a/gcc/graphite-sese-to-poly.c b/gcc/graphite-sese-to-poly.c index 83eff2a..d358137 100644 --- a/gcc/graphite-sese-to-poly.c +++ b/gcc/graphite-sese-to-poly.c @@ -2887,7 +2887,7 @@ graphite_loop_normal_form (loop_p loop) bool known_niter = number_of_iterations_exit (loop, exit, &niter, false); - /* At this point we should know the number of iterations, */ + /* At this point we should know the number of iterations. */ gcc_assert (known_niter); nit = force_gimple_operand (unshare_expr (niter.niter), &stmts, true, @@ -2895,7 +2895,7 @@ graphite_loop_normal_form (loop_p loop) if (stmts) gsi_insert_seq_on_edge_immediate (loop_preheader_edge (loop), stmts); - loop->single_iv = canonicalize_loop_ivs (loop, &nit); + loop->single_iv = canonicalize_loop_ivs (loop, &nit, false); } /* Rewrite all the loops of SCOP in normal form: one induction -- cgit v1.1