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)
committerJakub Jelinek <jakub@redhat.com>
Wed, 5 Aug 2020 08:37:25 +0000 (10:37 +0200)
commit325714b4968050c927fe72f4a4ba860da2bf4ee2
tree8d37302a45c3750e4ced2fc50b0fb164e48bcd4f
parent5998f1bbeb336d0b9aee86726291269fd8bb6a66
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.
gcc/omp-expand.c