summaryrefslogtreecommitdiff
path: root/gcc/graphite-sese-to-poly.c
diff options
context:
space:
mode:
authorspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>2010-03-31 18:37:13 +0000
committerspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>2010-03-31 18:37:13 +0000
commit0207206d3e2a17cd35d050b9197c575b531d29f4 (patch)
tree031cf7376f126a24b28052c5fb0f4f308cc6b474 /gcc/graphite-sese-to-poly.c
parenta751953f79681163e7ed60a2a5bc3b12c1c91171 (diff)
downloadgcc-0207206d3e2a17cd35d050b9197c575b531d29f4.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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157885 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/graphite-sese-to-poly.c')
-rw-r--r--gcc/graphite-sese-to-poly.c4
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