[InlineCost] InlineCostAnnotationWriterPass introduced
authorKirill Naumov <knaumov@azul.com>
Thu, 11 Jun 2020 22:24:10 +0000 (22:24 +0000)
committerKirill Naumov <knaumov@azul.com>
Wed, 17 Jun 2020 13:40:17 +0000 (13:40 +0000)
commit37e06e8f5c6ee39a1d7cbaf7d5f5a3ebfa1b4e15
treed81d88f7ecd0ce0b2c2ac1ba6c0c3bd13fb9b900
parentccd127008aa2aa0a303c9a0a48f4080a5bb7cd0b
[InlineCost] InlineCostAnnotationWriterPass introduced

This class allows to see the inliner's decisions for better
optimization verifications and tests. To use, use flag
"-passes="print<inline-cost>"".

Reviewers: apilipenko, mtrofin, davidxl, fedor.sergeev

Reviewed By: mtrofin

Differential revision: https://reviews.llvm.org/D81743
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 [new file with mode: 0644]
llvm/test/Transforms/Inline/print-instructions-deltas-unfinished.ll [deleted file]