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-Tag: basepoints/gcc-12~4767 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e24817aa7a1c6d12039b486ab5ea9b5ee0a46cd4;p=thirdparty%2Fgcc.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 728c6c1523db..6225552e41ae 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. */