aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorWenlei He <aktoon@gmail.com>2021-03-24 14:33:45 -0700
committerWenlei He <aktoon@gmail.com>2021-03-24 16:10:58 -0700
commit6869e6c1e7f88d06a5db44e46933843247887040 (patch)
tree8cd693f2f9b4e3e001d68492e8200382c70592bc /clang/lib/Frontend/CompilerInvocation.cpp
parent217f0f735afec57a51fa6f9ab863d4713a2f85e2 (diff)
downloadllvm-6869e6c1e7f88d06a5db44e46933843247887040.zip
llvm-6869e6c1e7f88d06a5db44e46933843247887040.tar.gz
llvm-6869e6c1e7f88d06a5db44e46933843247887040.tar.bz2
[InlineCost] Make cost-benefit decision explicit
With cost-benefit analysis for inlining, we bypass the cost-threshold by returning inline result from call analyzer early. However the cost and threshold are still available from call analyzer, and when cost is actually higher than threshold, we incorrect set the reason. The change makes the decision from cost-benefit analysis explicit. It's mostly NFC, except that it allows the priority-based sample loader inliner used by CSSPGO to use cost-benefit heuristic. Differential Revision: https://reviews.llvm.org/D99302
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions