diff options
author | Jan Hubicka <jh@suse.cz> | 2020-11-29 23:23:33 +0100 |
---|---|---|
committer | Jan Hubicka <jh@suse.cz> | 2020-11-29 23:23:33 +0100 |
commit | ccea13715b2ae55d4a784c2031553461ebf13eba (patch) | |
tree | 456b96c2af5423429682b0976a86fc95a1204a61 | |
parent | caea077c17fdf6fe1aa4c350260f25439dfd5066 (diff) | |
download | gcc-ccea13715b2ae55d4a784c2031553461ebf13eba.zip gcc-ccea13715b2ae55d4a784c2031553461ebf13eba.tar.gz gcc-ccea13715b2ae55d4a784c2031553461ebf13eba.tar.bz2 |
Fix handling of ignore_stores in ipa_merge_modref_summary_after_inlining
* ipa-modref.c (ipa_merge_modref_summary_after_inlining): Fix
handling of ignore_stores.
-rw-r--r-- | gcc/ipa-modref.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ipa-modref.c b/gcc/ipa-modref.c index 5ba8ff0..388b229 100644 --- a/gcc/ipa-modref.c +++ b/gcc/ipa-modref.c @@ -3064,14 +3064,14 @@ ipa_merge_modref_summary_after_inlining (cgraph_edge *edge) { if (!(flags & (ECF_CONST | ECF_NOVOPS))) to_info->loads->collapse (); - if (ignore_stores) + if (!ignore_stores) to_info->stores->collapse (); } if (!callee_info_lto && to_info_lto) { if (!(flags & (ECF_CONST | ECF_NOVOPS))) to_info_lto->loads->collapse (); - if (ignore_stores) + if (!ignore_stores) to_info_lto->stores->collapse (); } if (callee_info || callee_info_lto) |