Re: [PATCH] Fix SCCVN to optimistically value-number PHIs with backedges

2015-06-10 Thread Richard Biener
On Wed, 10 Jun 2015, Richard Biener wrote: > > The following patch fixes a preference that causes SCCVN to fail to > eliminate redundant IVs. It will prefer to try eliminating IVs to > eliminating degenerate PHIs (if the degenerate PHI has a backedge). > I failed to create a testcase for that -

[PATCH] Fix SCCVN to optimistically value-number PHIs with backedges

2015-06-10 Thread Richard Biener
The following patch fixes a preference that causes SCCVN to fail to eliminate redundant IVs. It will prefer to try eliminating IVs to eliminating degenerate PHIs (if the degenerate PHI has a backedge). I failed to create a testcase for that - the one below is essentially what the vectorizer can e