]> git.ipfire.org Git - thirdparty/gcc.git/commit
openmp: Use more efficient logical -> actual computation even if # iterations is...
authorJakub Jelinek <jakub@redhat.com>
Wed, 5 Aug 2020 08:37:25 +0000 (10:37 +0200)
committerKwok Cheung Yeung <kcy@codesourcery.com>
Tue, 9 Feb 2021 18:09:02 +0000 (10:09 -0800)
commit3dd767906dab7d5456fc4c3a98134582b5f8a2ed
treef76461e3a2db95cb06c9db6e6a2915f91d3c96a5
parent1e507ef879b2bf4ec1c80a07f41c52474ed32ba3
openmp: Use more efficient logical -> actual computation even if # iterations is computed at runtime

For triangular loops use more efficient logical iteration number
to actual iterator values computation even for non-rectangular loops
where number of loop iterations could not be computed at compile time.

2020-08-05  Jakub Jelinek  <jakub@redhat.com>

* omp-expand.c (expand_omp_for_init_counts): Remember
first_inner_iterations, factor and n1o from the number of iterations
computation in *fd.
(expand_omp_for_init_vars): Use more efficient logical iteration number
to actual iterator values computation even for non-rectangular loops
where number of loop iterations could not be computed at compile time.

(cherry picked from commit 325714b4968050c927fe72f4a4ba860da2bf4ee2)
gcc/ChangeLog.omp
gcc/omp-expand.c