https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108789
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note the missing SAVE_EXPR issue is similar to PR 52339 (which has a patch attached to it that would fix the issue here too I think).