Re: Question about indirect functions and PGO

2020-07-13 Thread Victor Rodriguez via Gcc
On Mon, Jul 13, 2020 at 6:41 AM Erick Ochoa wrote: > > Hi, > > I just wanted to answer myself. > It seems that there are two thresholds that need to be met if a function > is to be specialized within a particular context: > > 1. --param=hot-bb-count-ws-permille=. This option controls the hotness >

Re: Question about indirect functions and PGO

2020-07-13 Thread Erick Ochoa
Hi, I just wanted to answer myself. It seems that there are two thresholds that need to be met if a function is to be specialized within a particular context: 1. --param=hot-bb-count-ws-permille=. This option controls the hotness threshold of basic blocks and is needed for function specializa

Re: Question about indirect functions and PGO

2020-07-10 Thread Erick Ochoa
Forgot to mention that these functions take a function pointer as a parameter and as a result, the specialized functions are able to replace the indirect function call with a direct function call. On 10/07/2020 13:17, Erick Ochoa wrote: Hello, I'm working on an optimization and I encountered