https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119903
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Created attachment 61173 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61173&action=edit The gimple fold hack This is the gimple fold hack which I was talking about. I didn't add a testcase though because I fixed the problem before I came up with a testcase :).