search for: maxfunctioncount

Displaying 6 results from an estimated 6 matches for "maxfunctioncount".

2015 Dec 16
3
RFC: Hotness thresholds in profile header
...constant N is not useful since even for the same program different profile inputs can cause different answers for isHotBlock() on the same block. This can be addressed by comparing against a reference value that depends on the program and its input. For instance, the indexed profile header contains MaxFunctionCount and isHotBlock() could check if the block count exceeds a certain fraction of MaxFunctionCount. The drawback of this approach is that it is difficult to come up with a single fraction that works both for programs with a few hot-spots and programs with a long tail of block execution counts. Consid...
2015 Dec 17
2
RFC: Hotness thresholds in profile header
...eful since even for the same program different > profile inputs can cause different answers for isHotBlock() on the same > block. This can be addressed by comparing against a reference value that > depends on the program and its input. For instance, the indexed profile > header contains MaxFunctionCount and isHotBlock() could check if the block > count exceeds a certain fraction of MaxFunctionCount. > > > > The drawback of this approach is that it is difficult to come up with a > single fraction that works both for programs with a few hot-spots and > programs with a long tail...
2015 Dec 17
2
RFC: Hotness thresholds in profile header
...for the same program >> different profile inputs can cause different answers for isHotBlock() >> on the same block. This can be addressed by comparing against a >> reference value that depends on the program and its input. For >> instance, the indexed profile header contains MaxFunctionCount and >> isHotBlock() could check if the block count exceeds a certain fraction of MaxFunctionCount. >> >> >> >> The drawback of this approach is that it is difficult to come up with >> a single fraction that works both for programs with a few hot-spots >> an...
2015 May 28
1
[LLVMdev] Capabilities of Clang's PGO (e.g. improving code density)
...applyFunctionAttributes. Note that it uses the function entry count to determine hotness. This means that functions entered infrequently but containing very hot loops would be marked cold, perhaps this works since it is only used for inlining and is presumably a stand-in for call edge hotness. The MaxFunctionCount for the profile is also the max of all the function entry counts (set during profile writing). Teresa > >> >>> , loop optimizers and the >>> vectorizer. >>> >>> >>> Diego. >>> >>> _____________________________________________...
2015 May 28
0
[LLVMdev] Capabilities of Clang's PGO (e.g. improving code density)
On 05/27/2015 11:13 AM, Duncan P. N. Exon Smith wrote: >> On 2015 May 27, at 07:42, Diego Novillo <dnovillo at google.com> wrote: >> >> On Tue, May 26, 2015 at 11:47 PM, Lee Hunt <leehu at exchange.microsoft.com> wrote: >> >>> For example, from reading different pages on how Clang PGO, it’s unclear if >>> it does “block reordering” (i.e. moving
2015 May 27
3
[LLVMdev] Capabilities of Clang's PGO (e.g. improving code density)
> On 2015 May 27, at 07:42, Diego Novillo <dnovillo at google.com> wrote: > > On Tue, May 26, 2015 at 11:47 PM, Lee Hunt <leehu at exchange.microsoft.com> wrote: > >> For example, from reading different pages on how Clang PGO, it’s unclear if >> it does “block reordering” (i.e. moving unexecuted code blocks to a distant >> code page, leaving only ‘hot’