]> gcc.gnu.org Git - gcc.git/commitdiff
Fix handling of ignore_stores in ipa_merge_modref_summary_after_inlining
authorJan Hubicka <jh@suse.cz>
Sun, 29 Nov 2020 22:23:33 +0000 (23:23 +0100)
committerJan Hubicka <jh@suse.cz>
Sun, 29 Nov 2020 22:23:33 +0000 (23:23 +0100)
* ipa-modref.c (ipa_merge_modref_summary_after_inlining): Fix
handling of ignore_stores.

gcc/ipa-modref.c

index 5ba8ff000f040c35f80bc9d76dc8b34d323915ae..388b22987d6658e18e65f079c51c3bfee2458ef2 100644 (file)
@@ -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)
This page took 0.070392 seconds and 5 git commands to generate.