[PATCH] D15401: Refactor threshold computation for inline cost analysis

Easwaran Raman via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 9 17:14:42 PST 2015


eraman created this revision.
eraman added reviewers: chandlerc, stoklund.
eraman added subscribers: llvm-commits, davidxl.
eraman set the repository for this revision to rL LLVM.

This refactoring 
* Moves the threshold computation methods to InlineCost.cpp. 
* Removes state related to Threshold from the base Inliner class and moves it to SimpleInliner since threshold is only relevant for ICA which is used by SimpleInliner.
* Cleans up getInlineThreshold a little bit.

NFC intended. The motivation for this refactor is to allow getInlineThreshold to be called from inside CallAnalyzer when peering through indirect calls instead of using a constant value. 

Repository:
  rL LLVM

http://reviews.llvm.org/D15401

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15401.42359.patch
Type: text/x-patch
Size: 14075 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151210/d74afc89/attachment.bin>


More information about the llvm-commits mailing list