https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101481
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note this is an older regression but I only marked it as 11/12 as -ftree-loop-distribute-patterns is now enabled at -O2 rather than just -O3.