From: Jan Hubicka Date: Sun, 29 Nov 2020 22:23:33 +0000 (+0100) Subject: Fix handling of ignore_stores in ipa_merge_modref_summary_after_inlining X-Git-Tag: basepoints/gcc-12~2732 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ccea13715b2ae55d4a784c2031553461ebf13eba;p=thirdparty%2Fgcc.git 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. --- diff --git a/gcc/ipa-modref.c b/gcc/ipa-modref.c index 5ba8ff000f04..388b22987d66 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)