Re: Tiny phiprop compile time optimization

2023-06-23 Thread Richard Biener via Gcc-patches
> Am 23.06.2023 um 18:10 schrieb Jan Hubicka via Gcc-patches > : > > Hi, > here is updated version with TODO_update_ssa_only_virtuals. > bootstrapped/regtested x86_64-linux. OK? Ok Richard > gcc/ChangeLog: > >* tree-ssa-phiprop.cc (propagate_with_phi): Compute post dominators on >

Re: Tiny phiprop compile time optimization

2023-06-23 Thread Jan Hubicka via Gcc-patches
Hi, here is updated version with TODO_update_ssa_only_virtuals. bootstrapped/regtested x86_64-linux. OK? gcc/ChangeLog: * tree-ssa-phiprop.cc (propagate_with_phi): Compute post dominators on demand. (pass_phiprop::execute): Do not compute it here; return

Re: Tiny phiprop compile time optimization

2023-06-19 Thread Richard Biener via Gcc-patches
> Am 19.06.2023 um 20:08 schrieb Andrew Pinski via Gcc-patches > : > > On Mon, Jun 19, 2023 at 1:32 AM Richard Biener via Gcc-patches > wrote: >> >>> On Mon, 19 Jun 2023, Jan Hubicka wrote: >>> >>> Hi, >>> this patch avoids unnecessary post dominator and update_ssa in phiprop. >>> >>>

Re: Tiny phiprop compile time optimization

2023-06-19 Thread Andrew Pinski via Gcc-patches
On Mon, Jun 19, 2023 at 1:32 AM Richard Biener via Gcc-patches wrote: > > On Mon, 19 Jun 2023, Jan Hubicka wrote: > > > Hi, > > this patch avoids unnecessary post dominator and update_ssa in phiprop. > > > > Bootstrapped/regtested x86_64-linux, OK? > > > > gcc/ChangeLog: > > > > *

Re: Tiny phiprop compile time optimization

2023-06-19 Thread Richard Biener via Gcc-patches
On Mon, 19 Jun 2023, Jan Hubicka wrote: > Hi, > this patch avoids unnecessary post dominator and update_ssa in phiprop. > > Bootstrapped/regtested x86_64-linux, OK? > > gcc/ChangeLog: > > * tree-ssa-phiprop.cc (propagate_with_phi): Add > post_dominators_computed; > compute post

Tiny phiprop compile time optimization

2023-06-19 Thread Jan Hubicka via Gcc-patches
Hi, this patch avoids unnecessary post dominator and update_ssa in phiprop. Bootstrapped/regtested x86_64-linux, OK? gcc/ChangeLog: * tree-ssa-phiprop.cc (propagate_with_phi): Add post_dominators_computed; compute post dominators lazilly. (const pass_data