Re: [PATCH 06/10] vect: Pass reduc_info to get_initial_defs_for_reduction

2021-07-09 Thread Richard Biener via Gcc-patches
On Thu, Jul 8, 2021 at 6:48 PM Richard Sandiford wrote: > > Richard Biener writes: > > On Thu, Jul 8, 2021 at 2:46 PM Richard Sandiford via Gcc-patches > > wrote: > >> > >> This patch passes the reduc_info to get_initial_defs_for_reduction, > >> so that the function can get general information f

Re: [PATCH 06/10] vect: Pass reduc_info to get_initial_defs_for_reduction

2021-07-08 Thread Richard Sandiford via Gcc-patches
Richard Biener writes: > On Thu, Jul 8, 2021 at 2:46 PM Richard Sandiford via Gcc-patches > wrote: >> >> This patch passes the reduc_info to get_initial_defs_for_reduction, >> so that the function can get general information from there rather >> than from the first SLP statement. This isn't a wi

Re: [PATCH 06/10] vect: Pass reduc_info to get_initial_defs_for_reduction

2021-07-08 Thread Richard Biener via Gcc-patches
On Thu, Jul 8, 2021 at 2:46 PM Richard Sandiford via Gcc-patches wrote: > > This patch passes the reduc_info to get_initial_defs_for_reduction, > so that the function can get general information from there rather > than from the first SLP statement. This isn't a win on its own, > but it becomes i

[PATCH 06/10] vect: Pass reduc_info to get_initial_defs_for_reduction

2021-07-08 Thread Richard Sandiford via Gcc-patches
This patch passes the reduc_info to get_initial_defs_for_reduction, so that the function can get general information from there rather than from the first SLP statement. This isn't a win on its own, but it becomes important with later patches. gcc/ * tree-vect-loop.c (get_initial_defs_for