summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/parloops-exit-first-loop-alt-3.c
diff options
context:
space:
mode:
authorvries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>2015-06-30 08:35:57 +0000
committervries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>2015-06-30 08:35:57 +0000
commit5d4f3ed8fef038c3a16e962831119564c8094cb0 (patch)
treeca50ebb2d0d7f8b30b28938281260d4d17f52bd2 /gcc/testsuite/gcc.dg/parloops-exit-first-loop-alt-3.c
parentc539ca6d154190665f81482c5dc9cae5b861f636 (diff)
downloadgcc-5d4f3ed8fef038c3a16e962831119564c8094cb0.tar.gz
Use max_loop_iterations in transform_to_exit_first_loop_alt
2015-06-30 Tom de Vries <tom@codesourcery.com> PR tree-optimization/66652 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use max_loop_iterations to determine if nit + 1 overflows. * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite using restrict pointers. (main): Add arguments to calls to f. * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same. * gcc.dg/parloops-exit-first-loop-alt-pr66652.c: New test. * gcc.dg/parloops-exit-first-loop-alt-3.c (f): Rewrite using restrict pointers. * gcc.dg/parloops-exit-first-loop-alt.c: Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@225162 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/parloops-exit-first-loop-alt-3.c')
-rw-r--r--gcc/testsuite/gcc.dg/parloops-exit-first-loop-alt-3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/parloops-exit-first-loop-alt-3.c b/gcc/testsuite/gcc.dg/parloops-exit-first-loop-alt-3.c
index b0fde372a14..fec53a19628 100644
--- a/gcc/testsuite/gcc.dg/parloops-exit-first-loop-alt-3.c
+++ b/gcc/testsuite/gcc.dg/parloops-exit-first-loop-alt-3.c
@@ -7,7 +7,7 @@
unsigned int *a;
unsigned int
-f (unsigned int n)
+f (unsigned int n, unsigned int *__restrict__ a)
{
int i;
unsigned int sum = 1;