Hi,

now that we don't postpone expanding the kernels region anymore, we can set PROP_gimple_eomp unconditionally.

Committed to gomp-4_0-branch.

Thanks,
- Tom
Provide PROP_gimple_eomp unconditionally in pass_expand_omp

2015-11-09  Tom de Vries  <t...@codesourcery.com>

	* omp-low.c (pass_data_expand_omp): Add PROP_gimple_eomp to
	properties_provided.
	(pass_expand_omp::execute): Don't set PROP_gimple_eomp.
---
 gcc/omp-low.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/gcc/omp-low.c b/gcc/omp-low.c
index 4d6dc99..cd9c9e6 100644
--- a/gcc/omp-low.c
+++ b/gcc/omp-low.c
@@ -13589,7 +13589,7 @@ const pass_data pass_data_expand_omp =
   OPTGROUP_NONE, /* optinfo_flags */
   TV_NONE, /* tv_id */
   PROP_gimple_any, /* properties_required */
-  0 /* Possibly PROP_gimple_eomp.  */, /* properties_provided */
+  PROP_gimple_eomp, /* properties_provided */
   0, /* properties_destroyed */
   0, /* todo_flags_start */
   0, /* todo_flags_finish */
@@ -13603,14 +13603,12 @@ public:
   {}
 
   /* opt_pass methods: */
-  virtual unsigned int execute (function *fun)
+  virtual unsigned int execute (function *)
     {
       bool gate = ((flag_cilkplus != 0 || flag_openacc != 0 || flag_openmp != 0
 		    || flag_openmp_simd != 0)
 		   && !seen_error ());
 
-      fun->curr_properties |= PROP_gimple_eomp;
-
       /* This pass always runs, to provide PROP_gimple_eomp.
 	 But often, there is nothing to do.  */
       if (!gate)
-- 
1.9.1

Reply via email to