Re: [PATCH] SLP: support entire BB.

2020-08-23 Thread Richard Biener via Gcc-patches
On Mon, Aug 10, 2020 at 12:29 PM Martin Liška wrote: > > On 8/3/20 12:29 PM, Richard Biener wrote: > > You are always passing NULL here so simply avoid this and the following > > changes. > > Are you sure about this? > > Note that vect_slp_bb does: > > + if (!vect_find_stmt_data_reference (N

Re: [PATCH] SLP: support entire BB.

2020-08-10 Thread Martin Liška
On 8/3/20 12:29 PM, Richard Biener wrote: You are always passing NULL here so simply avoid this and the following changes. Are you sure about this? Note that vect_slp_bb does: + if (!vect_find_stmt_data_reference (NULL, stmt, &datarefs, + &dataref_

Re: [PATCH] SLP: support entire BB.

2020-08-03 Thread Richard Biener via Gcc-patches
On Fri, Jul 31, 2020 at 12:30 PM Martin Liška wrote: > > Hey. > > Motivation of the patch is to allow vectorization of an entire BB. > So far we bail out a sub-BB region when we reach a stmt for which > vect_find_stmt_data_reference returns false. That's replaced with > recoding of groups of the d

[PATCH] SLP: support entire BB.

2020-07-31 Thread Martin Liška
Hey. Motivation of the patch is to allow vectorization of an entire BB. So far we bail out a sub-BB region when we reach a stmt for which vect_find_stmt_data_reference returns false. That's replaced with recoding of groups of the data references. We can newly vectorize code like: void foo(); vo