[PATCH] D71501: Cost Annotation Writer for InlineCost
Kirill Naumov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 13 18:12:04 PST 2019
knaumov created this revision.
knaumov added reviewers: apilipenko, fedor.sergeev, yrouban, chandlerc, eraman.
Herald added subscribers: haicheng, hiraditya.
Herald added a project: LLVM.
The patch adds extra diagnostics for the inline cost analysis. The diagnostic is available under the new command line flag ("print-cost-annotation-writer") for the "inline-cost" pass. When enabled along with -debug-only=inline-cost it prints the IR of inline candidate annotated with cost and threshold increase per every instruction.
This should help analyze inliner decisions.
https://reviews.llvm.org/D71501
Files:
llvm/lib/Analysis/InlineCost.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71501.233900.patch
Type: text/x-patch
Size: 3923 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191214/debb061c/attachment.bin>
More information about the llvm-commits
mailing list