From e24817aa7a1c6d12039b486ab5ea9b5ee0a46cd4 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sun, 27 Sep 2020 23:44:15 +0200 Subject: [PATCH] Fix handling of stores in modref_summary::useful_p * ipa-modref.c (modref_summary::useful_p): Fix testing of stores. --- 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. */ -- 2.30.2