Commit 62180052 by Jakub Jelinek Committed by Jakub Jelinek

omp-low.c (lower_omp_scan): Call lower_omp on stmt's body in worksharing loop scans.

	* omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
	in worksharing loop scans.

From-SVN: r273038
parent 6c96b432
2019-07-04 Jakub Jelinek <jakub@redhat.com> 2019-07-04 Jakub Jelinek <jakub@redhat.com>
* omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
in worksharing loop scans.
PR tree-optimization/91074 PR tree-optimization/91074
* omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
temporary. temporary.
......
...@@ -8874,8 +8874,10 @@ lower_omp_scan (gimple_stmt_iterator *gsi_p, omp_context *ctx) ...@@ -8874,8 +8874,10 @@ lower_omp_scan (gimple_stmt_iterator *gsi_p, omp_context *ctx)
gsi_insert_seq_after (gsi_p, gimple_omp_body (stmt), GSI_SAME_STMT); gsi_insert_seq_after (gsi_p, gimple_omp_body (stmt), GSI_SAME_STMT);
gsi_insert_seq_after (gsi_p, before, GSI_SAME_STMT); gsi_insert_seq_after (gsi_p, before, GSI_SAME_STMT);
gsi_replace (gsi_p, gimple_build_nop (), true); gsi_replace (gsi_p, gimple_build_nop (), true);
return;
} }
else if (before) lower_omp (gimple_omp_body_ptr (stmt), octx);
if (before)
{ {
gimple_stmt_iterator gsi = gsi_start_1 (gimple_omp_body_ptr (stmt)); gimple_stmt_iterator gsi = gsi_start_1 (gimple_omp_body_ptr (stmt));
gsi_insert_seq_before (&gsi, before, GSI_SAME_STMT); gsi_insert_seq_before (&gsi, before, GSI_SAME_STMT);
......
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