diff options
author | Kwok Cheung Yeung <kcy@codesourcery.com> | 2021-03-01 14:15:30 -0800 |
---|---|---|
committer | Sandra Loosemore <sloosemore@baylibre.com> | 2025-05-15 20:25:46 +0000 |
commit | 81d73ad786759aadd926273e8ddd4adc7e6015bc (patch) | |
tree | ae4086affe064603d1c21d8fb378642c99f4e3f2 /gcc/c | |
parent | 48db8148b94ab2d93d9d5301f44950adf2a9c786 (diff) | |
download | gcc-81d73ad786759aadd926273e8ddd4adc7e6015bc.zip gcc-81d73ad786759aadd926273e8ddd4adc7e6015bc.tar.gz gcc-81d73ad786759aadd926273e8ddd4adc7e6015bc.tar.bz2 |
openmp: Scale type precision of collapsed iterator variable
This sets the type precision of the collapsed iterator variable to the
sum of the precision of the collapsed loop variables, up to a maximum of
sizeof(long long) (i.e. 64-bits).
gcc/ChangeLog
* omp-expand.cc (expand_oacc_for): Convert .tile variable to
diff_type before multiplying.
* omp-general.cc (omp_extract_for_data): Use accumulated precision
of all collapsed for-loops as precision of iteration variable, up
to the precision of a long long.
libgomp/ChangeLog
* testsuite/libgomp.c-c++-common/collapse-4.c: New.
* testsuite/libgomp.fortran/collapse5.f90: New.
Diffstat (limited to 'gcc/c')
0 files changed, 0 insertions, 0 deletions