https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115701
--- Comment #10 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-13 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:0dee54fabeb1d7bdf74cdeee080c7e5201008d6e commit r13-9039-g0dee54fabeb1d7bdf74cdeee080c7e5201008d6e Author: Richard Biener <rguent...@suse.de> Date: Sun Jun 30 11:28:11 2024 +0200 tree-optimization/115701 - factor out maybe_duplicate_ssa_info_at_copy The following factors out the code that preserves SSA info of the LHS of a SSA copy LHS = RHS when LHS is about to be eliminated to RHS. PR tree-optimization/115701 * tree-ssanames.h (maybe_duplicate_ssa_info_at_copy): Declare. * tree-ssanames.cc (maybe_duplicate_ssa_info_at_copy): New function, split out from ... * tree-ssa-copy.cc (fini_copy_prop): ... here. * tree-ssa-sccvn.cc (eliminate_dom_walker::eliminate_stmt): ... and here. (cherry picked from commit b5c64b413fd5bc03a1a8ef86d005892071e42cbe)