Re: [hsa] Add missing guard in OMP gridification

2017-10-27 Thread Jakub Jelinek
On Fri, Oct 27, 2017 at 03:19:05PM +0200, Martin Jambor wrote: > 2017-10-10 Martin Jambor > > * omp-grid.c (grid_attempt_target_gridification): Also insert a > condition whether loop should be executed at all. Ok, thanks. > --- a/gcc/omp-grid.c > +++ b/gcc/omp-grid.c > @@ -1315,6

[hsa] Add missing guard in OMP gridification

2017-10-27 Thread Martin Jambor
Hi, rather embarrasingly, I found out that there is a missing condition to make sure that HSA grid size is zero when the OpenMP loop bounds should preclude the loop from executing at all. I do not know whether I lost is somewhere when preparing patches for trunk or whether I forgot about it from