Re: [PATCH] tree-optimization: Add register pressure heuristics

2023-11-15 Thread Richard Biener
On Thu, Nov 16, 2023 at 7:12 AM Ajit Agarwal wrote: > > Hello Richard: > > With the below decison making I get the performance at par with trunk > changes and better than trunk for FP and INT SPEC 2017 benchmarks. > > int best_bb_liveout_cnt > = bitmap_count_bits (&live->liveout[best_bb->index

Re: [PATCH] tree-optimization: Add register pressure heuristics

2023-11-15 Thread Ajit Agarwal
Hello Richard: With the below decison making I get the performance at par with trunk changes and better than trunk for FP and INT SPEC 2017 benchmarks. int best_bb_liveout_cnt = bitmap_count_bits (&live->liveout[best_bb->index]); int early_bb_liveout_cnt = bitmap_count_bits (&live->liveou

Re: [PATCH] tree-optimization: Add register pressure heuristics

2023-11-04 Thread Ajit Agarwal
Hello Richard: Below are the performance numbers on CPU 2017 benchmarks with and without register pressure changes for code sinking. INT Benchmarks: With register pressure code sinking changes: Estimated Estimated Base Base

Re: [PATCH] tree-optimization: Add register pressure heuristics

2023-11-03 Thread Ajit Agarwal
Hello Richard: On 03/11/23 7:06 pm, Richard Biener wrote: > On Fri, Nov 3, 2023 at 11:20 AM Ajit Agarwal wrote: >> >> Hello Richard: >> >> On 03/11/23 12:51 pm, Richard Biener wrote: >>> On Thu, Nov 2, 2023 at 9:50 PM Ajit Agarwal wrote: Hello All: > [...] High register

Re: [PATCH] tree-optimization: Add register pressure heuristics

2023-11-03 Thread Richard Biener
On Fri, Nov 3, 2023 at 11:20 AM Ajit Agarwal wrote: > > Hello Richard: > > On 03/11/23 12:51 pm, Richard Biener wrote: > > On Thu, Nov 2, 2023 at 9:50 PM Ajit Agarwal wrote: > >> > >> Hello All: > >> [...] > >> > >> High register pressure region is the region where there are live-in of > >> early

Re: [PATCH] tree-optimization: Add register pressure heuristics

2023-11-03 Thread Ajit Agarwal
Hello Richard: On 03/11/23 12:51 pm, Richard Biener wrote: > On Thu, Nov 2, 2023 at 9:50 PM Ajit Agarwal wrote: >> >> Hello All: >> >> Currently code sinking heuristics are based on profile data like >> basic block count and sink frequency threshold. We have removed >> such heuristics and added r

Re: [PATCH] tree-optimization: Add register pressure heuristics

2023-11-03 Thread Richard Biener
On Thu, Nov 2, 2023 at 9:50 PM Ajit Agarwal wrote: > > Hello All: > > Currently code sinking heuristics are based on profile data like > basic block count and sink frequency threshold. We have removed > such heuristics and added register pressure heuristics based on > live-in and live-out of early

[PATCH] tree-optimization: Add register pressure heuristics

2023-11-02 Thread Ajit Agarwal
Hello All: Currently code sinking heuristics are based on profile data like basic block count and sink frequency threshold. We have removed such heuristics and added register pressure heuristics based on live-in and live-out of early blocks and immediate dominator of use blocks of the same loop ne