[PATCH] D81743: InlineCostAnnotationPrinterPass - Introducing the pass
Kirill Naumov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 12 08:03:26 PDT 2020
knaumov created this revision.
knaumov added reviewers: apilipenko, mtrofin, davidxl, fedor.sergeev.
Herald added subscribers: llvm-commits, haicheng, hiraditya, eraman.
Herald added a project: LLVM.
knaumov added a comment.
A question to @mtrofin:
I have changed the creation of InlineParams from
const InlineParams Params = llvm::getInlineParams();
which invokes the creation of InlineParams with DefaultThreshold to
const InlineParams Params = llvm::getInlineParams(InlineThreshold);
Is this correct?
This patch introduces InlineCostAnnotationPrinterPass - a pass that allows us to use the functionality of InlineCostAnnotationWriter in others than debug builds. This pass performs InlineCostAnalysis on each function that is being called from the given one and them dumps the result, thus activating InlineCostAnnotationWriter.
Future revisions will add new functionality to InlineCostAnnotationWriter.
This patch is the second part of D81016 <https://reviews.llvm.org/D81016>.
https://reviews.llvm.org/D81743
Files:
llvm/include/llvm/Analysis/InlineCost.h
llvm/lib/Analysis/InlineCost.cpp
llvm/lib/Passes/PassRegistry.def
llvm/test/Transforms/Inline/debuginline-cost-delta.ll
llvm/test/Transforms/Inline/inline-cost-annotation-pass.ll
llvm/test/Transforms/Inline/print-instructions-deltas-unfinished.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81743.270396.patch
Type: text/x-patch
Size: 7847 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200612/97c5bb34/attachment.bin>
More information about the llvm-commits
mailing list