Fix handling of stores in modref_summary::useful_p
* ipa-modref.c (modref_summary::useful_p): Fix testing of stores.
This commit is contained in:
parent
a4b31d5807
commit
e24817aa7a
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue