From 6218005284d4cf4e9645eb20feb9cf02819b94c9 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 4 Jul 2019 06:55:59 +0200 Subject: [PATCH] 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 --- gcc/ChangeLog | 3 +++ gcc/omp-low.c | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8aed90ab9d1..5d3d359b1df 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2019-07-04 Jakub Jelinek + * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body + in worksharing loop scans. + PR tree-optimization/91074 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx temporary. diff --git a/gcc/omp-low.c b/gcc/omp-low.c index 6e5b5322a05..7e85d4841b6 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -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, before, GSI_SAME_STMT); 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)); gsi_insert_seq_before (&gsi, before, GSI_SAME_STMT); -- 2.30.2