]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix handling of in_flags in update_escape_summary_1
authorJan Hubicka <jh@suse.cz>
Fri, 26 Nov 2021 12:36:35 +0000 (13:36 +0100)
committerJan Hubicka <jh@suse.cz>
Fri, 26 Nov 2021 12:38:00 +0000 (13:38 +0100)
update_escape_summary_1 has thinko where it compues proper min_flags but then
stores original value (ignoring the fact whether there was a dereference
in the escape point).

PR ipa/102943
* ipa-modref.c (update_escape_summary_1): Fix handling of min_flags.

gcc/ipa-modref.c

index c2edc0d28a6f1afb40942871d068befe5c7e0762..2f52d41aa4839eacb4b168c2ffa09b9d732d0290 100644 (file)
@@ -4201,7 +4201,7 @@ update_escape_summary_1 (cgraph_edge *e,
          if (ee->direct && !em->direct)
            min_flags = deref_flags (min_flags, ignore_stores);
          struct escape_entry entry = {em->parm_index, ee->arg,
-                                      ee->min_flags,
+                                      min_flags,
                                       ee->direct & em->direct};
          sum->esc.safe_push (entry);
        }