Re: [PATCH] Fix PR56157

2013-01-31 Thread Jakub Jelinek
On Thu, Jan 31, 2013 at 05:31:12PM +0100, Richard Biener wrote: > 2013-01-31 Richard Biener > > PR tree-optimization/ > * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to > match up operand with SLP child. > > * gcc.dg/torture/pr56157.c: New testcase. Ok, th

[PATCH] Fix PR56157

2013-01-31 Thread Richard Biener
This fixes PR56157 - when looking up operands for a vectorized SLP stmt we have to match up SLP childs with operands. We do so by looking for the operand in the DEF position of the SLP child. But that get's complicated in face of either stmt being a pattern stmt and its operands being DEFed by p