Re: [PATCH] Support vectorizing SLP with mixed plus/minus

2015-05-13 Thread Andreas Schwab
Richard Biener writes: > PR tree-optimization/37021 > * tree-vectorizer.h (struct _slp_tree): Add two_operators flag. > (SLP_TREE_TWO_OPERATORS): New define. > * tree-vect-slp.c (vect_create_new_slp_node): Initialize > SLP_TREE_TWO_OPERATORS. > (vect_build_slp_

Re: [PATCH] Support vectorizing SLP with mixed plus/minus

2015-05-12 Thread H.J. Lu
On Tue, May 12, 2015 at 4:48 AM, Richard Biener wrote: > > The following makes it possible to vectorize complex multiplication > without unrolling by allowing mixed operations in a SLP node > (plus/minus for now). We vectorize that by computing both plus > and minus and then merge the result. > >