https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111459
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- So on the trunk we have: Removing dead stmt:_39 = PHI <_12(5)> In ccp4 but we don't delete _12 as dead. Then dse deletes it: Deleted trivially dead stmt: _12 = (int) _6; Let me look into that and see if there is a reason why _12 is not deleted during ccp4.