public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Thomas Schwinge <tschwinge@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r12-985] [OpenACC privatization] Skip processing if no work to be done [PR90115]
Date: Fri, 21 May 2021 18:54:50 +0000 (GMT)	[thread overview]
Message-ID: <20210521185450.1AD37384783B@sourceware.org> (raw)

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);


                 reply	other threads:[~2021-05-21 18:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210521185450.1AD37384783B@sourceware.org \
    --to=tschwinge@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).