https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104356
--- Comment #18 from Richard Biener <rguenth at gcc dot gnu.org> --- So we'd add (!flag_non_call_exceptions || tree_expr_nonzero_p (@..)) to the offending and extra listed match.pd transforms. I guess that works for me.