rtl-ssa: Add entry point to allow re-parenting uses
commitba230aa1b855c32d5414183b604e45ce836fb532
authorAlex Coplan <alex.coplan@arm.com>
Thu, 17 Aug 2023 15:16:46 +0000 (17 16:16 +0100)
committerAlex Coplan <alex.coplan@arm.com>
Thu, 19 Oct 2023 10:12:22 +0000 (19 11:12 +0100)
tree77387387c4ecd886113d2df5a1a09dba4917e0bc
parentc95aab23c152115cd567541dd134f3fab6f45e78
rtl-ssa: Add entry point to allow re-parenting uses

This is needed by the upcoming aarch64 load pair pass, as it can
re-order stores (when alias analysis determines this is safe) and thus
change which mem def a given use consumes (in the RTL-SSA view, there is
no alias disambiguation of memory).

gcc/ChangeLog:

* rtl-ssa/accesses.cc (function_info::reparent_use): New.
* rtl-ssa/functions.h (function_info): Declare new member
function reparent_use.
gcc/rtl-ssa/accesses.cc
gcc/rtl-ssa/functions.h