From: Jan Hubicka Date: Sun, 27 Sep 2020 21:44:15 +0000 (+0200) Subject: Fix handling of stores in modref_summary::useful_p X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e24817aa7a1c6d12039b486ab5ea9b5ee0a46cd4;p=gcc.git Fix handling of stores in modref_summary::useful_p * 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. */