]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Remove senseless store in do_sd_constraint
authorRichard Biener <rguenther@suse.de>
Tue, 14 Mar 2023 13:42:10 +0000 (14:42 +0100)
committerRichard Biener <rguenther@suse.de>
Wed, 19 Apr 2023 12:14:14 +0000 (14:14 +0200)
* tree-ssa-structalias.cc (do_sd_constraint): Do not write
to the LHS varinfo solution member.

gcc/tree-ssa-structalias.cc

index 8976cc9c2f87c61575ff49c0cdddcde51a0284fc..89027ab573d1de05f9776f434db8097c52e3fd55 100644 (file)
@@ -1724,10 +1724,7 @@ do_sd_constraint (constraint_graph_t graph, constraint_t c,
 done:
   /* If the LHS solution changed, mark the var as changed.  */
   if (flag)
-    {
-      get_varinfo (lhs)->solution = sol;
-      bitmap_set_bit (changed, lhs);
-    }
+    bitmap_set_bit (changed, lhs);
 }
 
 /* Process a constraint C that represents *(x + off) = y using DELTA