public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Jan Hubicka <hubicka@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r11-3490] Fix handling of stores in modref_summary::useful_p
Date: Sun, 27 Sep 2020 21:44:46 +0000 (GMT)	[thread overview]
Message-ID: <20200927214446.4B08F386F81B@sourceware.org> (raw)

https://gcc.gnu.org/g:e24817aa7a1c6d12039b486ab5ea9b5ee0a46cd4

commit r11-3490-ge24817aa7a1c6d12039b486ab5ea9b5ee0a46cd4
Author: Jan Hubicka <jh@suse.cz>
Date:   Sun Sep 27 23:44:15 2020 +0200

    Fix handling of stores in modref_summary::useful_p
    
            * ipa-modref.c (modref_summary::useful_p): Fix testing of stores.

Diff:
---
 gcc/ipa-modref.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/ipa-modref.c b/gcc/ipa-modref.c
index 728c6c1523d..6225552e41a 100644
--- a/gcc/ipa-modref.c
+++ b/gcc/ipa-modref.c
@@ -135,7 +135,7 @@ modref_summary::useful_p (int ecf_flags)
     return true;
   if (ecf_flags & ECF_PURE)
     return false;
-  return stores && !loads->every_base;
+  return stores && !stores->every_base;
 }
 
 /* Dump A to OUT.  */


                 reply	other threads:[~2020-09-27 21:44 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=20200927214446.4B08F386F81B@sourceware.org \
    --to=hubicka@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).