]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix do_sd_constraint escape special casing
authorRichard Biener <rguenther@suse.de>
Wed, 15 Mar 2023 07:43:06 +0000 (08:43 +0100)
committerRichard Biener <rguenther@suse.de>
Wed, 19 Apr 2023 12:14:14 +0000 (14:14 +0200)
The following fixes the escape special casing to test the proper
variable IDs.

* tree-ssa-structalias.cc (do_sd_constraint): Fixup escape
special casing.

gcc/tree-ssa-structalias.cc

index 89027ab573d1de05f9776f434db8097c52e3fd55..4f350bfbfc031ae1743daf236dbe90e28fbdf867 100644 (file)
@@ -1706,7 +1706,7 @@ do_sd_constraint (constraint_graph_t graph, constraint_t c,
            flag |= bitmap_ior_into (sol, get_varinfo (t)->solution);
          /* Merging the solution from ESCAPED needlessly increases
             the set.  Use ESCAPED as representative instead.  */
-         else if (v->id == escaped_id)
+         else if (t == find (escaped_id))
            flag |= bitmap_set_bit (sol, escaped_id);
          else if (v->may_have_pointers
                   && add_graph_edge (graph, lhs, t))