Re: [PATCH] PR 71439 - Only vectorize live PHIs that are inductions

2016-06-15 Thread Richard Biener
On Wed, Jun 15, 2016 at 10:49 AM, Alan Hayward wrote: > For a PHI to be used outside the loop it needs to be vectorized. However > the > vectorizer currently will only vectorize PHIs that are an induction. > > This patch fixes PR 71439 by only allowing a live PHI to be

[PATCH] PR 71439 - Only vectorize live PHIs that are inductions

2016-06-15 Thread Alan Hayward
For a PHI to be used outside the loop it needs to be vectorized. However the vectorizer currently will only vectorize PHIs that are an induction. This patch fixes PR 71439 by only allowing a live PHI to be vectorized if it is an induction. In addition, live PHIs need to pass a