[PATCH] D21045: Use ProfileSummaryInfo in inline cost analysis

Easwaran Raman via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 6 16:02:12 PDT 2016


eraman created this revision.
eraman added reviewers: vsk, silvas, davidxl.
eraman added a subscriber: llvm-commits.

Instead of directly using MaxFunctionCount and function entry count to determine callee hotness, use the isHotFunction/isColdFunction methods provided by ProfileSummaryInfo. NFC.

http://reviews.llvm.org/D21045

Files:
  include/llvm/Analysis/InlineCost.h
  include/llvm/Transforms/IPO/InlinerPass.h
  lib/Analysis/InlineCost.cpp
  lib/Transforms/IPO/InlineAlways.cpp
  lib/Transforms/IPO/InlineSimple.cpp
  lib/Transforms/IPO/Inliner.cpp
  test/Transforms/Inline/inline-cold-callee.ll
  test/Transforms/Inline/inline-hot-callee.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21045.59798.patch
Type: text/x-patch
Size: 14853 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160606/30c5b317/attachment.bin>


More information about the llvm-commits mailing list