From: Richard Biener Date: Tue, 14 Mar 2023 13:42:10 +0000 (+0100) Subject: Remove senseless store in do_sd_constraint X-Git-Tag: basepoints/gcc-15~10066 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d218c45e318dcec04312f1d4a14c6ff904404e1;p=thirdparty%2Fgcc.git Remove senseless store in do_sd_constraint * tree-ssa-structalias.cc (do_sd_constraint): Do not write to the LHS varinfo solution member. --- diff --git a/gcc/tree-ssa-structalias.cc b/gcc/tree-ssa-structalias.cc index 8976cc9c2f87..89027ab573d1 100644 --- a/gcc/tree-ssa-structalias.cc +++ b/gcc/tree-ssa-structalias.cc @@ -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