[Bug tree-optimization/104406] SLP discovery doesn't use TWO_OPERAND nodes as seeds

2022-02-07 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104406

Richard Biener  changed:

   What|Removed |Added

 Resolution|--- |DUPLICATE
 Status|UNCONFIRMED |RESOLVED

--- Comment #3 from Richard Biener  ---
It is indeed.  The "trick" will be to start at _3 = COMPLEX_EXPR <..> like we
start at vector CONSTRUCTOR.  For the vectorization of the root stmt you'd
then simply do V_C_E (vector-result).

Now, for bigger vectors you'd have to start with multiple COMPLEX_EXPRs
which will unfortunately not be related in the SSA graph (so that's going
to be more difficult if desired).

*** This bug has been marked as a duplicate of bug 31485 ***

[Bug tree-optimization/104406] SLP discovery doesn't use TWO_OPERAND nodes as seeds

2022-02-06 Thread tnfchris at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104406

--- Comment #2 from Tamar Christina  ---
Yeah it looks like there's an overlap with
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31485 indeed, but that ticket
seems to be trying to address multiple things at once including an x86 costing
issue.

I'm happy to mark this as a dup though.

[Bug tree-optimization/104406] SLP discovery doesn't use TWO_OPERAND nodes as seeds

2022-02-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104406

--- Comment #1 from Andrew Pinski  ---
Almost positive this is a dup of bug 31485