diff options
author | vries <vries@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-06-30 08:35:57 +0000 |
---|---|---|
committer | vries <vries@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-06-30 08:35:57 +0000 |
commit | 5d4f3ed8fef038c3a16e962831119564c8094cb0 (patch) | |
tree | ca50ebb2d0d7f8b30b28938281260d4d17f52bd2 /gcc/testsuite/gcc.dg/parloops-exit-first-loop-alt-3.c | |
parent | c539ca6d154190665f81482c5dc9cae5b861f636 (diff) | |
download | gcc-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.c | 2 |
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; |