[PATCH] D20452: Allow -inline-threshold to override default (explicitly specified/derived from opt levels) threshold

Easwaran Raman via llvm-commits llvm-commits at lists.llvm.org
Thu May 19 15:41:21 PDT 2016


eraman created this revision.
eraman added reviewers: chandlerc, hfinkel.
eraman added subscribers: llvm-commits, jhowarth.

Before r257832, the threshold used by SimpleInliner was explicitly specified or generated from opt levels and passed to the base class Inliner's constructor. There, it was first overridden by explicitly specified -inline-threshold. The refactoring in r257832 did not preserve this behavior for all opt levels. This change brings back the original behavior. 

http://reviews.llvm.org/D20452

Files:
  lib/Analysis/InlineCost.cpp
  test/Transforms/Inline/inline-threshold.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20452.57867.patch
Type: text/x-patch
Size: 3554 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160519/260a6356/attachment.bin>


More information about the llvm-commits mailing list