aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-parloops.c
diff options
context:
space:
mode:
authorSebastian Pop <sebastian.pop@amd.com>2010-03-31 18:37:13 +0000
committerSebastian Pop <spop@gcc.gnu.org>2010-03-31 18:37:13 +0000
commitc80a540338e5809cdf058b13e23e30585219a0fa (patch)
tree031cf7376f126a24b28052c5fb0f4f308cc6b474 /gcc/tree-parloops.c
parentcaaf41d0e86fc020b5a8f0a1a8b6a89d23a07522 (diff)
downloadgcc-c80a540338e5809cdf058b13e23e30585219a0fa.zip
gcc-c80a540338e5809cdf058b13e23e30585219a0fa.tar.gz
gcc-c80a540338e5809cdf058b13e23e30585219a0fa.tar.bz2
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/tree-parloops.c')
-rw-r--r--gcc/tree-parloops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-parloops.c b/gcc/tree-parloops.c
index 885a713..3563831 100644
--- a/gcc/tree-parloops.c
+++ b/gcc/tree-parloops.c
@@ -1626,7 +1626,7 @@ gen_parallel_loop (struct loop *loop, htab_t reduction_list,
free_original_copy_tables ();
/* Base all the induction variables in LOOP on a single control one. */
- canonicalize_loop_ivs (loop, &nit);
+ canonicalize_loop_ivs (loop, &nit, true);
/* Ensure that the exit condition is the first statement in the loop. */
transform_to_exit_first_loop (loop, reduction_list, nit);