public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Fix handling of stores in modref_summary::useful_p
@ 2020-09-27 21:46 Jan Hubicka
  2020-10-05 11:52 ` Vaseeharan Vinayagamoorthy
  0 siblings, 1 reply; 6+ messages in thread
From: Jan Hubicka @ 2020-09-27 21:46 UTC (permalink / raw)
  To: gcc-patches, d

Hi,
this patch fixes a pasto in modref_summary::useful_p that made
ipa-modref to give up on tracking stores when all load info got lost.

Bootstrapped/regtested x86_64-linux, comitted.

gcc/ChangeLog:

2020-09-27  Jan Hubicka  <hubicka@ucw.cz>

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

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.  */

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-10-06  8:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-27 21:46 Fix handling of stores in modref_summary::useful_p Jan Hubicka
2020-10-05 11:52 ` Vaseeharan Vinayagamoorthy
2020-10-05 16:28   ` Szabolcs Nagy
2020-10-05 16:54     ` Szabolcs Nagy
2020-10-05 21:45       ` Jan Hubicka
2020-10-06  8:52         ` Szabolcs Nagy

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