Re: [PATCH VECT]Support operand swapping for cond_expr in vect_slp

2016-10-31 Thread Bin.Cheng
On Fri, Oct 28, 2016 at 1:17 PM, Richard Biener wrote: > On Thu, Oct 27, 2016 at 3:37 PM, Bin Cheng wrote: >> Hi, >> During analysis, vect_slp checks if statements of a group are isomorphic to >> each other, specifically, all statements have to be isomorphic to the first >> one. Apparently, op

Re: [PATCH VECT]Support operand swapping for cond_expr in vect_slp

2016-10-28 Thread Richard Biener
On Thu, Oct 27, 2016 at 3:37 PM, Bin Cheng wrote: > Hi, > During analysis, vect_slp checks if statements of a group are isomorphic to > each other, specifically, all statements have to be isomorphic to the first > one. Apparently, operands of commutative operators (PLUS_EXPR/MINUS_EXPR > etc.)

[PATCH VECT]Support operand swapping for cond_expr in vect_slp

2016-10-27 Thread Bin Cheng
Hi, During analysis, vect_slp checks if statements of a group are isomorphic to each other, specifically, all statements have to be isomorphic to the first one. Apparently, operands of commutative operators (PLUS_EXPR/MINUS_EXPR etc.) could be swapped when checking isomorphic property. Though