Re: [RFC, PATCH] Don't introduce useless edge splits unless in PRE

2019-05-20 Thread Richard Biener
On Fri, May 17, 2019 at 6:42 PM Vladislav Ivanishin wrote: > > Richard Biener writes: > > > On Tue, May 14, 2019 at 3:58 PM Vladislav Ivanishin wrote: > >> > >> Hi! > >> > >> The split_critical_edges() function has multiple uses and it seems, a > >> portion of its code was added to work only whe

Re: [RFC, PATCH] Don't introduce useless edge splits unless in PRE

2019-05-17 Thread Vladislav Ivanishin
Richard Biener writes: > On Tue, May 14, 2019 at 3:58 PM Vladislav Ivanishin wrote: >> >> Hi! >> >> The split_critical_edges() function has multiple uses and it seems, a >> portion of its code was added to work only when called from tree-ssa-pre >> but right now it is executed regardless of the

Re: [RFC, PATCH] Don't introduce useless edge splits unless in PRE

2019-05-15 Thread Richard Biener
On Tue, May 14, 2019 at 3:58 PM Vladislav Ivanishin wrote: > > Hi! > > The split_critical_edges() function has multiple uses and it seems, a > portion of its code was added to work only when called from tree-ssa-pre > but right now it is executed regardless of the caller. > > The below patch survi

[RFC, PATCH] Don't introduce useless edge splits unless in PRE

2019-05-14 Thread Vladislav Ivanishin
Hi! The split_critical_edges() function has multiple uses and it seems, a portion of its code was added to work only when called from tree-ssa-pre but right now it is executed regardless of the caller. The below patch survives bootstrap and regression testing on x86_64-pc-linux-gnu. Does it make