[PATCH] D107705: [Attributor] AAHotCold propagate to call sites in the same block.

Kuter Dinel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 7 17:46:04 PDT 2021


kuter created this revision.
Herald added subscribers: ormris, okura, jdoerfert, uenoku, hiraditya.
Herald added a reviewer: uenoku.
Herald added a reviewer: homerdin.
kuter requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added a reviewer: sstefan1.
Herald added a reviewer: baziotis.
Herald added subscribers: llvm-commits, bbn.
Herald added a project: LLVM.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D107705

Files:
  llvm/lib/Transforms/IPO/AttributorAttributes.cpp
  llvm/test/Transforms/Attributor/hotcold.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107705.364995.patch
Type: text/x-patch
Size: 10005 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210808/22cce129/attachment.bin>


More information about the llvm-commits mailing list