Fix handling of stores in modref_summary::useful_p
authorJan Hubicka <jh@suse.cz>
Sun, 27 Sep 2020 21:44:15 +0000 (23:44 +0200)
committerJan Hubicka <jh@suse.cz>
Sun, 27 Sep 2020 21:44:15 +0000 (23:44 +0200)
* ipa-modref.c (modref_summary::useful_p): Fix testing of stores.

gcc/ipa-modref.c

index 728c6c1523dbc03e0049e7addea7041165165c2e..6225552e41aecbf5539f3462ee50d126b82b7bf4 100644 (file)
@@ -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.  */