https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114243
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Subreg improvements to ra is planned for gcc 15 as the riscv folks are running into it for vector modes in some cases. Maybe that will improves the situation here.