]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/115701 - factor out maybe_duplicate_ssa_info_at_copy
authorRichard Biener <rguenther@suse.de>
Sun, 30 Jun 2024 09:28:11 +0000 (11:28 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Sun, 30 Jun 2024 10:55:23 +0000 (12:55 +0200)
commitb5c64b413fd5bc03a1a8ef86d005892071e42cbe
tree3b58e32ac6bd314f399b8b6de042525c109c1c6e
parentb443d7122ee8013c5af127d3d183a03962967f57
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.
gcc/tree-ssa-copy.cc
gcc/tree-ssa-sccvn.cc
gcc/tree-ssanames.cc
gcc/tree-ssanames.h