diff options
author | Sebastian Pop <sebastian.pop@amd.com> | 2010-03-31 18:37:13 +0000 |
---|---|---|
committer | Sebastian Pop <spop@gcc.gnu.org> | 2010-03-31 18:37:13 +0000 |
commit | c80a540338e5809cdf058b13e23e30585219a0fa (patch) | |
tree | 031cf7376f126a24b28052c5fb0f4f308cc6b474 /gcc/graphite-sese-to-poly.c | |
parent | caaf41d0e86fc020b5a8f0a1a8b6a89d23a07522 (diff) | |
download | gcc-c80a540338e5809cdf058b13e23e30585219a0fa.tar.gz |
canonicalize_loop_ivs should add the IV bump in loop->header.
2010-03-16 Sebastian Pop <sebastian.pop@amd.com>
* 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
Diffstat (limited to 'gcc/graphite-sese-to-poly.c')
-rw-r--r-- | gcc/graphite-sese-to-poly.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/graphite-sese-to-poly.c b/gcc/graphite-sese-to-poly.c index 83eff2a341c..d358137ef72 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 |