aboutsummaryrefslogtreecommitdiff
path: root/gcc/graphite.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2012-06-22 12:29:33 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2012-06-22 12:29:33 +0000
commit62e0a1ed43184c59f3c5d0d30b7a573c7574c00f (patch)
treec3219bcca178f5d132ff02ba16435f89fac9c6c1 /gcc/graphite.c
parentd25df8825432c8589b42f2b12e078c7eb596e947 (diff)
downloadgcc-62e0a1ed43184c59f3c5d0d30b7a573c7574c00f.zip
gcc-62e0a1ed43184c59f3c5d0d30b7a573c7574c00f.tar.gz
gcc-62e0a1ed43184c59f3c5d0d30b7a573c7574c00f.tar.bz2
[multiple changes]
2012-06-22 Richard Guenther <rguenther@suse.de> Merge from graphite branch 2011-08-10 Sebastian Pop <sebpop@gmail.com> * graphite-sese-to-poly.c (build_scop_drs): Fix memory leak. 2012-01-13 Tobias Grosser <tobias@grosser.es> * tree-flow.h (parallelized_function_p): Declare. * tree-parloops.c (parallelized_function_p): Export. * graphite.c (graphite_transform_loops): Do not run graphite on already parallel functions. libgomp/ * testsuite/libgomp.graphite/force-parallel-1.c: Adjust. * testsuite/libgomp.graphite/force-parallel-2.c: Likewise. From-SVN: r188885
Diffstat (limited to 'gcc/graphite.c')
-rw-r--r--gcc/graphite.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/graphite.c b/gcc/graphite.c
index b013447..91358c1 100644
--- a/gcc/graphite.c
+++ b/gcc/graphite.c
@@ -253,6 +253,11 @@ graphite_transform_loops (void)
VEC (scop_p, heap) *scops = NULL;
htab_t bb_pbb_mapping;
+ /* If a function is parallel it was most probably already run through graphite
+ once. No need to run again. */
+ if (parallelized_function_p (cfun->decl))
+ return;
+
if (!graphite_initialize ())
return;