[Bug tree-optimization/90591] Avoid unnecessary data transfer out of OMP construct
burnus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Apr 28 16:53:12 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90591
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |burnus at gcc dot gnu.org
--- Comment #4 from Tobias Burnus <burnus at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #1)
> We want to add some attribute(s) on the structure types used to pass
> information in and out (or in the fields), and have some specialized IPA
> optimization that tries to optimize such cases.
I concur - and had even today a hello-world example for the copy-in example:
double x = 0.5;
#pragma omp target
printf("%f\n", sin(x);
could be compile-time optimized the sin() call to a constant but doesn't.
More information about the Gcc-bugs
mailing list