[PATCH] tree-optimization/102139 - fix SLP DR base alignment

2021-08-31 Thread Richard Biener via Gcc-patches
When doing whole-function SLP we have to make sure the recorded base alignments we compute as the maximum alignment seen for a base anywhere in the function is actually valid at the point we want to make use of it. To make this work we now record the stmt the alignment was derived from in addition

Re: [PATCH] tree-optimization/102139 - fix SLP DR base alignment

2021-08-31 Thread Richard Biener via Gcc-patches
On Tue, Aug 31, 2021 at 11:26 AM Richard Biener via Gcc-patches wrote: > > When doing whole-function SLP we have to make sure the recorded > base alignments we compute as the maximum alignment seen for a > base anywhere in the function is actually valid at the point > we want to make use of it. >

Re: [PATCH] tree-optimization/102139 - fix SLP DR base alignment

2021-09-01 Thread Richard Sandiford via Gcc-patches
Richard Biener writes: > On Tue, Aug 31, 2021 at 11:26 AM Richard Biener via Gcc-patches > wrote: >> >> When doing whole-function SLP we have to make sure the recorded >> base alignments we compute as the maximum alignment seen for a >> base anywhere in the function is actually valid at the point

Re: [PATCH] tree-optimization/102139 - fix SLP DR base alignment

2021-09-01 Thread Richard Biener via Gcc-patches
On Wed, 1 Sep 2021, Richard Sandiford wrote: > Richard Biener writes: > > On Tue, Aug 31, 2021 at 11:26 AM Richard Biener via Gcc-patches > > wrote: > >> > >> When doing whole-function SLP we have to make sure the recorded > >> base alignments we compute as the maximum alignment seen for a > >>

Re: [PATCH] tree-optimization/102139 - fix SLP DR base alignment

2021-09-01 Thread Richard Sandiford via Gcc-patches
Richard Biener writes: > On Wed, 1 Sep 2021, Richard Sandiford wrote: > >> Richard Biener writes: >> > On Tue, Aug 31, 2021 at 11:26 AM Richard Biener via Gcc-patches >> > wrote: >> >> >> >> When doing whole-function SLP we have to make sure the recorded >> >> base alignments we compute as the m