https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102908
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #2) > This might be a bug in simple_dce_from_worklist which does not check > stmt_unremovable_because_of_non_call_eh_p . > > Let me check if that solves the issue. The only issue here is that tree-vect-generic uses this to delete statements they have lowered but stmt_unremovable_because_of_non_call_eh_p might return true for those. So I might need an other argument to simple_dce_from_worklist about that ... Let me try without the argument first.