RE: [PATCH 3/3]middle-end: maintain LCSSA throughout loop peeling

2023-10-11 Thread Richard Biener
On Wed, 11 Oct 2023, Tamar Christina wrote: > > > + auto loop_exits = get_loop_exit_edges (loop); > > > + auto_vec doms; > > > + > > >if (at_exit) /* Add the loop copy at exit. */ > > > { > > > - if (scalar_loop != loop) > > > + if (scalar_loop != loop && new_exit->dest != exi

RE: [PATCH 3/3]middle-end: maintain LCSSA throughout loop peeling

2023-10-11 Thread Tamar Christina
> > + auto loop_exits = get_loop_exit_edges (loop); > > + auto_vec doms; > > + > >if (at_exit) /* Add the loop copy at exit. */ > > { > > - if (scalar_loop != loop) > > + if (scalar_loop != loop && new_exit->dest != exit_dest) > > { > > - gphi_iterator gsi; > > ne

Re: [PATCH 3/3]middle-end: maintain LCSSA throughout loop peeling

2023-10-10 Thread Richard Biener
On Mon, 2 Oct 2023, Tamar Christina wrote: > Hi All, > > This final patch updates peeling to maintain LCSSA all the way through. > > It's significantly easier to maintain it during peeling while we still know > where all new edges connect rather than touching it up later as is currently > being