[PATCH] D23885: [ThinLTO] add constArgumentsBitmask to caller summary

Piotr Padlewski via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 25 11:10:40 PDT 2016


Prazek created this revision.
Prazek added reviewers: tejohnson, eraman, mehdi_amini.
Prazek added a subscriber: llvm-commits.
Herald added a subscriber: mehdi_amini.

In order to import functions that exceeds size threshold, additional
information is needed. By knowing which arguments are constant on
the caller site, we can build some heuristics to give some additional
bonus to calls with multiple constant arguments (assuming that the
called functions will get simplified enough to be worth inlining).

https://reviews.llvm.org/D23885

Files:
  include/llvm/Bitcode/LLVMBitCodes.h
  include/llvm/IR/ModuleSummaryIndex.h
  lib/Analysis/ModuleSummaryAnalysis.cpp
  lib/Bitcode/Reader/BitcodeReader.cpp
  lib/Bitcode/Writer/BitcodeWriter.cpp
  lib/IR/ModuleSummaryIndex.cpp
  test/Bitcode/Inputs/thinlto-function-summary-callgraph-const-arguments.ll
  test/Bitcode/thinlto-alias.ll
  test/Bitcode/thinlto-function-summary-callgraph-const-arguments.ll
  test/Bitcode/thinlto-function-summary-callgraph-pgo.ll
  test/Bitcode/thinlto-function-summary-callgraph.ll
  test/Bitcode/thinlto-function-summary-refgraph.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23885.69271.patch
Type: text/x-patch
Size: 23373 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160825/646df472/attachment.bin>


More information about the llvm-commits mailing list