https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121200
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- It looks like this has been improved on the trunk. Maybe later versions of gcc 14 too. Let me see if there was some improvements there.