aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-modref.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2020-09-27 23:44:15 +0200
committerJan Hubicka <jh@suse.cz>2020-09-27 23:44:15 +0200
commite24817aa7a1c6d12039b486ab5ea9b5ee0a46cd4 (patch)
tree458ece6a74ffe47369597ccc1ec9984c3c573234 /gcc/ipa-modref.c
parenta4b31d5807f2bc67c8999b3d53369cf2a5c6e1ec (diff)
downloadgcc-e24817aa7a1c6d12039b486ab5ea9b5ee0a46cd4.zip
gcc-e24817aa7a1c6d12039b486ab5ea9b5ee0a46cd4.tar.gz
gcc-e24817aa7a1c6d12039b486ab5ea9b5ee0a46cd4.tar.bz2
Fix handling of stores in modref_summary::useful_p
* ipa-modref.c (modref_summary::useful_p): Fix testing of stores.
Diffstat (limited to 'gcc/ipa-modref.c')
-rw-r--r--gcc/ipa-modref.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-modref.c b/gcc/ipa-modref.c
index 728c6c1..6225552 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. */