Re: [PATCH] Fix PR82337 (SLSR and abnormal PHIs)

2017-09-29 Thread Richard Biener
On Wed, Sep 27, 2017 at 9:15 PM, Bill Schmidt wrote: > Hi, > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82337 reports a problem > with SLSR performing an invalid optimization across an abnormal PHI. > This is easy to avoid by ensuring that SSA names used in an abnormal > PHI never appear as a

[PATCH] Fix PR82337 (SLSR and abnormal PHIs)

2017-09-27 Thread Bill Schmidt
Hi, https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82337 reports a problem with SLSR performing an invalid optimization across an abnormal PHI. This is easy to avoid by ensuring that SSA names used in an abnormal PHI never appear as a basis or as a PHI basis in the candidate table. We won't optimize