aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2023-03-15 08:43:06 +0100
committerRichard Biener <rguenther@suse.de>2023-04-19 14:14:14 +0200
commit8366e6764e18ca6526d9be87f5bb54ae8339d7f7 (patch)
tree91d0504511d79a702ec180241740012e0bd4c282
parent9d218c45e318dcec04312f1d4a14c6ff904404e1 (diff)
downloadgcc-8366e6764e18ca6526d9be87f5bb54ae8339d7f7.zip
gcc-8366e6764e18ca6526d9be87f5bb54ae8339d7f7.tar.gz
gcc-8366e6764e18ca6526d9be87f5bb54ae8339d7f7.tar.bz2
Fix do_sd_constraint escape special casing
The following fixes the escape special casing to test the proper variable IDs. * tree-ssa-structalias.cc (do_sd_constraint): Fixup escape special casing.
-rw-r--r--gcc/tree-ssa-structalias.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-structalias.cc b/gcc/tree-ssa-structalias.cc
index 89027ab..4f350bf 100644
--- a/gcc/tree-ssa-structalias.cc
+++ b/gcc/tree-ssa-structalias.cc
@@ -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))