Hi,

this is another simple cleanup that I forgot to commit, which just
removes a lastprivate check (which hsa now can handle) at a place
where it cannot ever be anyway.

Committed to the hsa branch, will include it in the pile of OpenMP
stuff to request to merge to trunk later this week.

Thanks,

Martin


2016-11-07  Martin Jambor  <mjam...@suse.cz>

        * omp-low.c (grid_target_follows_gridifiable_pattern): Do not
        check for lastprivate clause on teams construct.
---
 gcc/omp-low.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/gcc/omp-low.c b/gcc/omp-low.c
index ac87a91..65b0ddc 100644
--- a/gcc/omp-low.c
+++ b/gcc/omp-low.c
@@ -17972,13 +17972,6 @@ grid_target_follows_gridifiable_pattern (gomp_target 
*target, grid_prop *grid)
                             "clause is present\n ");
          return false;
 
-       case OMP_CLAUSE_LASTPRIVATE:
-         if (dump_enabled_p ())
-           dump_printf_loc (MSG_MISSED_OPTIMIZATION, tloc,
-                            GRID_MISSED_MSG_PREFIX "a lastprivate "
-                            "clause is present\n ");
-         return false;
-
        case OMP_CLAUSE_THREAD_LIMIT:
          if (!integer_zerop (OMP_CLAUSE_OPERAND (clauses, 0)))
            group_size = OMP_CLAUSE_OPERAND (clauses, 0);
-- 
2.10.1

Reply via email to