aboutsummaryrefslogtreecommitdiff
path: root/gcc/ChangeLog
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2013-05-16 10:45:55 +0000
committerJakub Jelinek <jakub@redhat.com>2013-05-16 10:45:55 +0000
commitea9844280f264f3454bc1e40cea9deb6eebbc8bb (patch)
treedc2209e0c65f8033dc217882801d2c5f7e758133 /gcc/ChangeLog
parent32b378cefc05aa7a264dda865c2f65595ca2f109 (diff)
* omp-low.c (extract_omp_for_data): For collapsed loops,
if at least one of the loops is known at compile time to iterate zero times, set count to 0. (expand_omp_regimplify_p): New function. (expand_omp_for_generic): For collapsed loops, if at least one of the loops isn't known to iterate at least once, add runtime check with setting count to 0. (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): For unsigned types if it isn't known at compile time that the loop will iterate at least once, add runtime check to bypass the whole loop if initial condition isn't true. * testsuite/libgomp.c/loop-13.c: New test. * testsuite/libgomp.c/loop-14.c: New test. * testsuite/libgomp.c/loop-15.c: New test. * testsuite/libgomp.c++/loop-13.C: New test. * testsuite/libgomp.c++/loop-14.C: New test. * testsuite/libgomp.c++/loop-15.C: New test. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-4_8-branch@198967 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ChangeLog')
-rw-r--r--gcc/ChangeLog14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7ab387f693d..4612d9fa0f7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,17 @@
+2013-05-16 Jakub Jelinek <jakub@redhat.com>
+
+ * omp-low.c (extract_omp_for_data): For collapsed loops,
+ if at least one of the loops is known at compile time to
+ iterate zero times, set count to 0.
+ (expand_omp_regimplify_p): New function.
+ (expand_omp_for_generic): For collapsed loops, if at least
+ one of the loops isn't known to iterate at least once,
+ add runtime check with setting count to 0.
+ (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
+ For unsigned types if it isn't known at compile time that
+ the loop will iterate at least once, add runtime check to bypass
+ the whole loop if initial condition isn't true.
+
2013-05-14 Jakub Jelinek <jakub@redhat.com>
PR middle-end/57251