aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-ch.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2012-02-08 15:28:01 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2012-02-08 15:28:01 +0000
commit31432e219f044eb7195b9f802db88ace3e7fe8a1 (patch)
tree1efa0d6fbc6e7f4dd31d427ac6c423dc2e46bc4e /gcc/tree-ssa-loop-ch.c
parentc51ec0a3d68c86ba9b2e2d0c61556fee8308d570 (diff)
downloadgcc-31432e219f044eb7195b9f802db88ace3e7fe8a1.zip
gcc-31432e219f044eb7195b9f802db88ace3e7fe8a1.tar.gz
gcc-31432e219f044eb7195b9f802db88ace3e7fe8a1.tar.bz2
re PR tree-optimization/46886 (wrong code with -ftree-parallelize-loops -fno-tree-ch)
2012-03-08 Richard Guenther <rguenther@suse.de> PR tree-optimization/46886 * tree-flow.h (do_while_loop_p): Declare. * tree-ssa-loop-ch.c (do_while_loop_p): Export. * tree-parloops.c (parallelize_loops): Only parallelize do-while loops. * testsuite/libgomp.c/pr46886.c: New testcase. From-SVN: r184010
Diffstat (limited to 'gcc/tree-ssa-loop-ch.c')
-rw-r--r--gcc/tree-ssa-loop-ch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-loop-ch.c b/gcc/tree-ssa-loop-ch.c
index 57e71b4..84e5a7d 100644
--- a/gcc/tree-ssa-loop-ch.c
+++ b/gcc/tree-ssa-loop-ch.c
@@ -104,7 +104,7 @@ should_duplicate_loop_header_p (basic_block header, struct loop *loop,
/* Checks whether LOOP is a do-while style loop. */
-static bool
+bool
do_while_loop_p (struct loop *loop)
{
gimple stmt = last_stmt (loop->latch);