https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100394
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- Classically it needs two DCE passes, the first removes the call LHS, the second then no longer considers the call necessary because of EH. But even with that fixed there are subsequent passes breaking things.