* [committed] Call lower_omp on GIMPLE_OMP_SCAN body
@ 2019-07-04 5:13 Jakub Jelinek
0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2019-07-04 5:13 UTC (permalink / raw)
To: gcc-patches
Hi!
For is_simd, we change GIMPLE_OMP_SCAN statements immediately to GIMPLE_NOPs
and emit their bodies after them, so the lower_omp caller keeps iterating
over those statements, but for is_for we don't do that, so we should
lower_omp the bodies.
Bootstrapped/regtested on x86_64-linux and i686-linux, committed to trunk.
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.
--- gcc/omp-low.c.jj 2019-07-03 07:02:16.460989884 +0200
+++ gcc/omp-low.c 2019-07-03 21:02:10.097104445 +0200
@@ -8874,8 +8874,10 @@ lower_omp_scan (gimple_stmt_iterator *gs
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);
Jakub
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-07-04 5:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-04 5:13 [committed] Call lower_omp on GIMPLE_OMP_SCAN body Jakub Jelinek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).