public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-985] [OpenACC privatization] Skip processing if no work to be done [PR90115]
@ 2021-05-21 18:54 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2021-05-21 18:54 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:ad4612cb048b261f6834e9155e41e40e9252c80b
commit r12-985-gad4612cb048b261f6834e9155e41e40e9252c80b
Author: Thomas Schwinge <thomas@codesourcery.com>
Date: Thu May 20 15:45:06 2021 +0200
[OpenACC privatization] Skip processing if no work to be done [PR90115]
gcc/
PR middle-end/90115
* omp-offload.c (execute_oacc_device_lower): Skip processing if no
work to be done.
Diff:
---
gcc/omp-offload.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gcc/omp-offload.c b/gcc/omp-offload.c
index 336b48d5a3b..8bfb8b36cf0 100644
--- a/gcc/omp-offload.c
+++ b/gcc/omp-offload.c
@@ -2246,7 +2246,8 @@ execute_oacc_device_lower ()
COMPONENT_REFS, ARRAY_REFS and plain VAR_DECLs are also rewritten to use
the new decl, adjusting types of appropriate tree nodes as necessary. */
- if (targetm.goacc.adjust_private_decl)
+ if (targetm.goacc.adjust_private_decl
+ && !adjusted_vars.is_empty ())
{
FOR_ALL_BB_FN (bb, cfun)
for (gimple_stmt_iterator gsi = gsi_start_bb (bb);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-05-21 18:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-21 18:54 [gcc r12-985] [OpenACC privatization] Skip processing if no work to be done [PR90115] Thomas Schwinge
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).