Re: [PATCH 05/10] vect: Add a vect_phi_initial_value helper function

2021-07-08 Thread Richard Sandiford via Gcc-patches
Richard Biener writes: > On Thu, Jul 8, 2021 at 2:45 PM Richard Sandiford via Gcc-patches > wrote: >> >> This patch adds a helper function called vect_phi_initial_value >> for returning the incoming value of a given loop phi. The main >> reason for adding it is to ensure that the right preheader

Re: [PATCH 05/10] vect: Add a vect_phi_initial_value helper function

2021-07-08 Thread Richard Biener via Gcc-patches
On Thu, Jul 8, 2021 at 2:45 PM Richard Sandiford via Gcc-patches wrote: > > This patch adds a helper function called vect_phi_initial_value > for returning the incoming value of a given loop phi. The main > reason for adding it is to ensure that the right preheader edge > is used when vectorising

[PATCH 05/10] vect: Add a vect_phi_initial_value helper function

2021-07-08 Thread Richard Sandiford via Gcc-patches
This patch adds a helper function called vect_phi_initial_value for returning the incoming value of a given loop phi. The main reason for adding it is to ensure that the right preheader edge is used when vectorising nested loops. (PHI_ARG_DEF_FROM_EDGE itself doesn't assert that the given edge is