https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96847
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Looks like there is some IV-OPTs issue and that the limited registers is causing spilling and that add range is causing the need for more register usage.