https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106352
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I have to double check but the testcase might be hard to produce alias checks too. Marking the incoming arguments with restrict will also "fix" the code gen.