[PATCH] D50704: [Inline-cost] Teach cost function to account for accumulative code-size growth
Diogo N. Sampaio via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 14 06:57:10 PDT 2018
dnsampaio created this revision.
dnsampaio added reviewers: chandlerc, greened, SjoerdMeijer.
Herald added subscribers: llvm-commits, haicheng, eraman.
The current Inline-cost function does not take into account the accumulative code size growth of inlining calls to the same function multiple times.
If N function calls to a function are inlined, each increasing size by I, the accumulative code growth is N * I.
If the callee has local linkage, then we give it a bonus, as the function can be eliminated by the number of instruction in the function.
Repository:
rL LLVM
https://reviews.llvm.org/D50704
Files:
include/llvm/Analysis/InlineCost.h
lib/Analysis/InlineCost.cpp
test/Transforms/Inline/InlineGrowthCost.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50704.160572.patch
Type: text/x-patch
Size: 6689 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180814/aed64962/attachment.bin>
More information about the llvm-commits
mailing list