Re: [PATCH] Fix 101256: Wrong code due to range incorrect from PHI-OPT

2021-07-06 Thread Richard Biener via Gcc-patches
On Tue, Jul 6, 2021 at 3:14 AM apinski--- via Gcc-patches wrote: > > From: Andrew Pinski > > So the problem here is that replace_phi_edge_with_variable > will copy range information to a already (not newly) defined > ssa name. This causes wrong code later on. > This fixes the problem by require

[PATCH] Fix 101256: Wrong code due to range incorrect from PHI-OPT

2021-07-05 Thread apinski--- via Gcc-patches
From: Andrew Pinski So the problem here is that replace_phi_edge_with_variable will copy range information to a already (not newly) defined ssa name. This causes wrong code later on. This fixes the problem by require the new ssa name to be defined in the same bb as the conditional that is about