[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, 24 Jun 2020 21:27:07 +0000 (21:27 +0000)
commit6a5d7d498c0b16b13ace802f422b223eb510c303
tree3afb3b6da3bee397cd01ab676870bf0ef0d42a11
parenta61c73dbe320f1caf9940717090548df8ee30f8b
[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>"".

This is the second attempt to integrate the patch.
The problem from the first try has been discussed and
fixed in D82205.

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]