https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107485
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #4) > Yes expand_vector_condition needs a similar fix just as PR 104450 did. Basically the bug is latent even on the trunk still. Something like: diff --git a/gcc/tree-vect-generic.cc b/gcc/tree-vect-generic.cc index 350129555a0..f585d3ddbc4 100644 --- a/gcc/tree-vect-generic.cc +++ b/gcc/tree-vect-generic.cc @@ -1044,6 +1044,7 @@ expand_vector_condition (gimple_stmt_iterator *gsi, bitmap dce_ssa_names) { assign = dyn_cast<gassign *> (SSA_NAME_DEF_STMT (a)); if (assign != NULL + && !stmt_can_throw_internal (cfun, assign) && TREE_CODE_CLASS (gimple_assign_rhs_code (assign)) == tcc_comparison) { a_is_comparison = true; Should fix the issue ....