https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107165
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note since it was fixed in GCC 12.1.0 and it does not look like a regression, this will be closed as fixed for GCC 12 after bisecting to the patch which fixed it and the fix won't be backported to GCC 11.x.