Re: [PATCH] tree-optimization/103188 - avoid running ranger on not-up-to-date SSA

2021-11-11 Thread Aldy Hernandez via Gcc-patches
Like this. It simplifies both loop-ch and the threader. I'll push this pending tests unless someone objects. On Thu, Nov 11, 2021 at 5:43 PM Aldy Hernandez wrote: > > Thanks for doing this! > > > > > + gimple_ranger *ranger = new gimple_ranger; > > + path_range_query *query = new path_range_q

Re: [PATCH] tree-optimization/103188 - avoid running ranger on not-up-to-date SSA

2021-11-11 Thread Richard Biener via Gcc-patches
On November 11, 2021 5:43:48 PM GMT+01:00, Aldy Hernandez wrote: >Thanks for doing this! > >> >> + gimple_ranger *ranger = new gimple_ranger; >> + path_range_query *query = new path_range_query (*ranger, >> /*resolve=*/true); > >Hmmm, it looks like both clients are now instantiating a gimple_r

Re: [PATCH] tree-optimization/103188 - avoid running ranger on not-up-to-date SSA

2021-11-11 Thread Aldy Hernandez via Gcc-patches
Thanks for doing this! > > + gimple_ranger *ranger = new gimple_ranger; > + path_range_query *query = new path_range_query (*ranger, /*resolve=*/true); Hmmm, it looks like both clients are now instantiating a gimple_ranger just so they can pass it down to the path_range_query. Maybe we should

[PATCH] tree-optimization/103188 - avoid running ranger on not-up-to-date SSA

2021-11-11 Thread Richard Biener via Gcc-patches
The following splits loop header copying into an analysis phase that uses ranger and a transform phase that can do without to avoid running ranger on IL that has SSA form not updated. Bootstrapped and tested on x86_64-unknown-linux-gnu, pushed. 2021-11-11 Richard Biener PR tree-optimi