[PATCH] D43521: [ThinLTO] Compute synthetic function entry count

Easwaran Raman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 20 11:55:16 PST 2018


eraman created this revision.
eraman added a reviewer: tejohnson.
Herald added subscribers: inglorion, mehdi_amini.

This patch computes the synthetic function entry count on the whole
program callgraph (based on module summary) and writes the entry counts
to the summary. After function importing, this count gets attached to
the IR as metadata. Since it adds a new field to the summary, this bumps
up the version.


Repository:
  rL LLVM

https://reviews.llvm.org/D43521

Files:
  include/llvm/IR/ModuleSummaryIndex.h
  include/llvm/IR/ModuleSummaryIndexYAML.h
  include/llvm/Transforms/IPO/FunctionImport.h
  lib/Analysis/ModuleSummaryAnalysis.cpp
  lib/Analysis/SyntheticCountsUtils.cpp
  lib/Bitcode/Reader/BitcodeReader.cpp
  lib/Bitcode/Writer/BitcodeWriter.cpp
  lib/LTO/LTO.cpp
  lib/Transforms/IPO/FunctionImport.cpp
  lib/Transforms/IPO/SyntheticCountsPropagation.cpp
  test/Bitcode/summary_version.ll
  test/Bitcode/thinlto-alias.ll
  test/Bitcode/thinlto-function-summary-callgraph.ll
  test/ThinLTO/X86/Inputs/function_entry_count.ll
  test/ThinLTO/X86/function_entry_count.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43521.135117.patch
Type: text/x-patch
Size: 21938 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180220/f5f59666/attachment.bin>


More information about the llvm-commits mailing list