Commit 8a866b82 by Tom de Vries Committed by Tom de Vries

Fix unsharing of GIMPLE_OMP_{SINGLE,TARGET,TEAMS} in gimple_copy

2017-10-26  Tom de Vries  <tom@codesourcery.com>

	PR tree-optimization/82707
	* gimple.c (gimple_copy): Fix unsharing of
	GIMPLE_OMP_{SINGLE,TARGET,TEAMS}.

From-SVN: r254120
parent 7e23f4a6
2017-10-26 Tom de Vries <tom@codesourcery.com>
PR tree-optimization/82707
* gimple.c (gimple_copy): Fix unsharing of
GIMPLE_OMP_{SINGLE,TARGET,TEAMS}.
2017-10-26 Olga Makhotina <olga.makhotina@intel.com>
* config/i386/avx512fintrin.h (_mm512_cmpeq_pd_mask,
......@@ -1840,11 +1840,35 @@ gimple_copy (gimple *stmt)
gimple_omp_sections_set_clauses (copy, t);
t = unshare_expr (gimple_omp_sections_control (stmt));
gimple_omp_sections_set_control (copy, t);
/* FALLTHRU */
goto copy_omp_body;
case GIMPLE_OMP_SINGLE:
{
gomp_single *omp_single_copy = as_a <gomp_single *> (copy);
t = unshare_expr (gimple_omp_single_clauses (stmt));
gimple_omp_single_set_clauses (omp_single_copy, t);
}
goto copy_omp_body;
case GIMPLE_OMP_TARGET:
{
gomp_target *omp_target_stmt = as_a <gomp_target *> (stmt);
gomp_target *omp_target_copy = as_a <gomp_target *> (copy);
t = unshare_expr (gimple_omp_target_clauses (omp_target_stmt));
gimple_omp_target_set_clauses (omp_target_copy, t);
t = unshare_expr (gimple_omp_target_data_arg (omp_target_stmt));
gimple_omp_target_set_data_arg (omp_target_copy, t);
}
goto copy_omp_body;
case GIMPLE_OMP_TEAMS:
{
gomp_teams *omp_teams_copy = as_a <gomp_teams *> (copy);
t = unshare_expr (gimple_omp_teams_clauses (stmt));
gimple_omp_teams_set_clauses (omp_teams_copy, t);
}
/* FALLTHRU */
case GIMPLE_OMP_SECTION:
case GIMPLE_OMP_MASTER:
case GIMPLE_OMP_TASKGROUP:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment