https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115143
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note this is a latent bug that dates back to r0-66475-g8eaa0f34a3387d (GCC 4.1.0) Note also r13-1950-g9bb19e143cfe88 introduced the similar bug too. Basically there needs a check for no phi nodes in the middle bb's.