On 13/10/15 17:59, Tom de Vries wrote:
Hi,

this patch moves the kernels pass group to before pass_fre. Instead we
use pass_dominator_oacc_kernels in the pass group.


And that means we can get rid of the .omp_data_i init handling in tree-ssa-sccvn.c.

Committed to gomp-4_0-branch.

Thanks,
- Tom


Revert .omp_data_i init handling in tree-ssa-sccvn.c

2015-10-13  Tom de Vries  <t...@codesourcery.com>

	Revert:
	2015-04-21  Tom de Vries  <t...@codesourcery.com>

	* tree-ssa-sccvn.c: Include omp-low.h.
	(visit_use): Handle .omp_data_i init conservatively.
---
 gcc/tree-ssa-sccvn.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/gcc/tree-ssa-sccvn.c b/gcc/tree-ssa-sccvn.c
index d5964b4..5b06d29 100644
--- a/gcc/tree-ssa-sccvn.c
+++ b/gcc/tree-ssa-sccvn.c
@@ -58,7 +58,6 @@ along with GCC; see the file COPYING3.  If not see
 #include "domwalk.h"
 #include "cgraph.h"
 #include "gimple-iterator.h"
-#include "omp-low.h"
 
 /* This algorithm is based on the SCC algorithm presented by Keith
    Cooper and L. Taylor Simpson in "SCC-Based Value numbering"
@@ -3623,8 +3622,7 @@ visit_use (tree use)
     {
       if (gimple_code (stmt) == GIMPLE_PHI)
 	changed = visit_phi (stmt);
-      else if (gimple_has_volatile_ops (stmt)
-	       || gimple_stmt_omp_data_i_init_p (stmt))
+      else if (gimple_has_volatile_ops (stmt))
 	changed = defs_to_varying (stmt);
       else if (is_gimple_assign (stmt))
 	{
-- 
1.9.1

Reply via email to