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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org
             Status|NEW                         |ASSIGNED

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 50102
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50102&action=edit
gcc11-pr98848.patch

This works too.  I don't see how we could use vect_reassociating_reduction_p,
that for one seems to be used in the positive checks (only recognize if
reduction) and more importantly, makes heavy assumptions on what the assignment
must be (while for over-widen it could be e.g. a COND_EXPR).

Reply via email to