https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109071
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Jump threading is happening which is causing some code to be duplicated. I am 100% sure there is a dup of this bug already filed too.