public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* omp-low cleanup
@ 2015-10-28 18:39 Nathan Sidwell
  0 siblings, 0 replies; only message in thread
From: Nathan Sidwell @ 2015-10-28 18:39 UTC (permalink / raw)
  To: GCC Patches, Jakub Jelinek

[-- Attachment #1: Type: text/plain, Size: 132 bytes --]

I've committed this as obvious.  There were a couple of bits of now-redundant 
code I'd missed in my recent merge to trunk.

nathan

[-- Attachment #2: trunk-omp-clean.patch --]
[-- Type: text/x-patch, Size: 1208 bytes --]

2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>

	* omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
	(extract_omp_for_data): Remove OpenACC special handling of
	chunking.

Index: gcc/omp-low.c
===================================================================
--- gcc/omp-low.c	(revision 229488)
+++ gcc/omp-low.c	(working copy)
@@ -137,12 +137,6 @@ struct omp_region
   gomp_ordered *ord_stmt;
 };
 
-/* Levels of parallelism as defined by OpenACC.  Increasing numbers
-   correspond to deeper loop nesting levels.  */
-#define MASK_GANG 1
-#define MASK_WORKER 2
-#define MASK_VECTOR 4
-
 /* Context structure.  Used to store information about each parallel
    directive in the code.  */
 
@@ -840,15 +834,6 @@ extract_omp_for_data (gomp_for *for_stmt
     }
   else if (loops)
     loops[0] = fd->loop;
-
-  /* For OpenACC loops, force a chunk size of one, as this avoids the default
-    scheduling where several subsequent iterations are being executed by the
-    same thread.  */
-  if (gimple_omp_for_kind (for_stmt) == GF_OMP_FOR_KIND_OACC_LOOP)
-    {
-      gcc_assert (fd->chunk_size == NULL_TREE);
-      fd->chunk_size = build_int_cst (TREE_TYPE (fd->loop.v), 1);
-    }
 }
 
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-10-28 18:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-28 18:39 omp-low cleanup Nathan Sidwell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).