This is an archive of the discontinued LLVM Phabricator instance.

[Attributor] AAHotCold propagate to call sites in the same block.
Needs ReviewPublic

Authored by kuter on Aug 7 2021, 5:46 PM.

Details

Summary

This patch uses the other calls inside the same block to infer
if a call site is cold or hot. We assume that a call site is considered
hot if a there is a call to a hot inside the same block.
If all call sites of a function is hot or cold we consider the function
hot or cold respectively.

To achieve this we create a call site position for AAHotCold.
this position talks to the function position to get information about
the block it is on.

Diff Detail

Event Timeline

kuter created this revision.Aug 7 2021, 5:46 PM
kuter requested review of this revision.Aug 7 2021, 5:46 PM
Herald added a reviewer: sstefan1. · View Herald Transcript
Herald added a reviewer: baziotis. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
kuter updated this revision to Diff 367368.Aug 18 2021, 5:31 PM

Rebase, fix tests.

kuter updated this revision to Diff 367371.Aug 18 2021, 5:37 PM

Fix wrapper.ll test.

kuter updated this revision to Diff 367603.Aug 19 2021, 1:32 PM

imlpement 'trackStatistics()` function for Function position.

kuter updated this revision to Diff 368996.Aug 26 2021, 3:24 PM

Rebase (use the bitstate)

ormris removed a subscriber: ormris.Jan 24 2022, 11:47 AM