[PATCH] D42311: [SyntheticCounts] Rewrite the code using only graph traits.

Easwaran Raman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 19 12:37:08 PST 2018


eraman created this revision.
eraman added a reviewer: davidxl.
Herald added a subscriber: mehdi_amini.

The intent of this is to allow the code to be used with ThinLTO. In
Thinlink phase, a traditional Callgraph can not be computed even though
all the necessary information (nodes and edges of a call graph) is
available. This is due to the fact that CallGraph class is closely tied
to the IR. This patch first extends GraphTraits to add a CallGraphTraits
graph. This is then used to implement a version of counts propagation
on a generic callgraph.


Repository:
  rL LLVM

https://reviews.llvm.org/D42311

Files:
  include/llvm/Analysis/CallGraph.h
  include/llvm/Analysis/SyntheticCountsUtils.h
  lib/Analysis/SyntheticCountsUtils.cpp
  lib/Transforms/IPO/SyntheticCountsPropagation.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42311.130675.patch
Type: text/x-patch
Size: 12820 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180119/f784272b/attachment.bin>


More information about the llvm-commits mailing list