https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118922
--- Comment #20 from Andrew Pinski <pinskia at gcc dot gnu.org> --- So the issue is empty_or_with_defined_p is true but the middle_bb has a phi in it. And that is the fix rather previous patch here.