[hsa] Add missing guard in OMP gridification
authorMartin Jambor <mjambor@suse.cz>
Mon, 30 Oct 2017 15:07:20 +0000 (16:07 +0100)
committerMartin Jambor <jamborm@gcc.gnu.org>
Mon, 30 Oct 2017 15:07:20 +0000 (16:07 +0100)
commit791929c91a53a168bb46e3cd08612eb69d5a6785
tree61cd99f7f20374930f9d8c0eda7c72268f2e331f
parent932bfa9bc738058463c5430efab4aabefcfe4951
[hsa] Add missing guard in OMP gridification

2017-10-30  Martin Jambor  <mjambor@suse.cz>

* omp-grid.c (grid_attempt_target_gridification): Also insert a
condition whether loop should be executed at all.

From-SVN: r254225
gcc/ChangeLog
gcc/omp-grid.c