[PATCH] D107409: [Attributor] Propagate Cold attribute inter procedurally

Kuter Dinel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 3 16:24:25 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 adds AAHotCold, which propagates the cold attribute.
The Attribute marks a function as cold if all of it's callers are cold.

Other ways of propagating the hot/cold attributes are planned.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D107409

Files:
  llvm/include/llvm/Transforms/IPO/Attributor.h
  llvm/lib/Transforms/IPO/Attributor.cpp
  llvm/lib/Transforms/IPO/AttributorAttributes.cpp
  llvm/test/Transforms/Attributor/ArgumentPromotion/byval.ll
  llvm/test/Transforms/Attributor/IPConstantProp/2009-09-24-byval-ptr.ll
  llvm/test/Transforms/Attributor/hotcold.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107409.363906.patch
Type: text/x-patch
Size: 16121 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210803/873489d0/attachment.bin>


More information about the llvm-commits mailing list