[PATCH 3/9] ipa-cp: Leave removal of unused parameters to IPA-SRA

2022-12-12 Thread Martin Jambor
Hi, I'm re-posting patches which I have posted at the end of stage 1 but which have not passed review yet. 8< Looking at some benchmarks I have noticed many cases when IPA-CP cloned a function for all contexts just because it kn

Re: [PATCH 3/9] ipa-cp: Leave removal of unused parameters to IPA-SRA

2022-12-12 Thread Jan Hubicka via Gcc-patches
> Hi, > > I'm re-posting patches which I have posted at the end of stage 1 but > which have not passed review yet. > > 8< > > Looking at some benchmarks I have noticed many cases when IPA-CP > cloned a function for all contexts

Re: [PATCH 3/9] ipa-cp: Leave removal of unused parameters to IPA-SRA

2022-12-13 Thread Martin Jambor
Hi, On Mon, Dec 12 2022, Jan Hubicka wrote: >> [...] >> diff --git a/gcc/ipa-cp.cc b/gcc/ipa-cp.cc >> index cc031ebed0f..172ea353c49 100644 >> --- a/gcc/ipa-cp.cc >> +++ b/gcc/ipa-cp.cc >> @@ -3722,7 +3722,10 @@ estimate_local_effects (struct cgraph_node *node) >>