https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112464

--- Comment #1 from Robin Dapp <rdapp at gcc dot gnu.org> ---
We fail at:

void
vect_finish_replace_stmt (vec_info *vinfo,
                          stmt_vec_info stmt_info, gimple *vec_stmt)
{
  gimple *scalar_stmt = vect_orig_stmt (stmt_info)->stmt;
  gcc_assert (gimple_get_lhs (scalar_stmt) == gimple_get_lhs (vec_stmt));

where

scalar_stmt = _ifc__40 = .COND_ADD (_22, err_lsm.9_10, 1, err_lsm.9_10);
and
patt_7 = stmp_patt_7.23_123 + stmp_patt_7.23_124;

It happens when we expand the reduction into separate unconditional statements.

Reply via email to