https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114510
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note it looks like fwprop was doing it in GCC 13 but not on the trunk due to a cost reason. I have not looked further. There could be some cost issues in the aarch64 backend dealing with address costs too.