Displaying 3 results from an estimated 3 matches for "l__llvm_profile_counters_bar".
2015 Aug 08
2
RFC: PGO Late instrumentation for LLVM
...t;> void foo() {
>> bar();
>> }
>>
>> FE based instrumentation needs to insert counter update for the only BB
>> of the bar().
>> bar: # @bar
>> # BB#0: # %entry
>> incq .L__llvm_profile_counters_bar(%rip)
>> incl sum(%rip)
>> retq
>>
>> It also need to insert the update the BB in function foo(). After
>> inlining bar to foo(), the code is:
>> foo: # @foo
>> # BB#0: # %...
2015 Aug 10
3
RFC: PGO Late instrumentation for LLVM
...gt;>>
> >>> FE based instrumentation needs to insert counter update for the only BB
> >>> of the bar().
> >>> bar: # @bar
> >>> # BB#0: # %entry
> >>> incq .L__llvm_profile_counters_bar(%rip)
> >>> incl sum(%rip)
> >>> retq
> >>>
> >>> It also need to insert the update the BB in function foo(). After
> >>> inlining bar to foo(), the code is:
> >>> foo: # @fo...
2015 Aug 08
3
RFC: PGO Late instrumentation for LLVM
...pdate are redundant.
Considering the following example:
void bar(){
sum++;
}
void foo() {
bar();
}
FE based instrumentation needs to insert counter update for the only BB of
the bar().
bar: # @bar
# BB#0: # %entry
incq .L__llvm_profile_counters_bar(%rip)
incl sum(%rip)
retq
It also need to insert the update the BB in function foo(). After inlining
bar to foo(), the code is:
foo: # @foo
# BB#0: # %entry
incq .L__llvm_profile_counters_foo(%rip)...