diff mbox

[hsa-branch] Remove superfluous lastprivate check

Message ID 20161107184053.mi3lv3cwqyblpbcp@virgil.suse.cz
State New
Headers show

Commit Message

Martin Jambor Nov. 7, 2016, 6:40 p.m. UTC
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  <mjambor@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 mbox

Patch

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);