[PATCH] D81016: Adding InlineCostAnnotationPrinterPass for Inline Cost Analysis

Kirill Naumov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 2 10:25:47 PDT 2020


knaumov created this revision.
knaumov added reviewers: apilipenko, davidxl, mtrofin, fedor.sergeev.
Herald added subscribers: llvm-commits, haicheng, hiraditya, eraman.
Herald added a project: LLVM.
knaumov updated this revision to Diff 267918.
knaumov added a comment.

- Refactoring change


For testing purposes, it is more efficient to use a pass which performs the Inline Cost Analysis and displays all the information about instructions. The functionality of the flag "-print-instruction-deltas" (which is renamed to "-print-inline-cost-instruction-annotations" for clarity) remains.
We need this pass because several tests, existing and upcoming, will require this functionality, but for now, it is limited only to debug builds.


https://reviews.llvm.org/D81016

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: D81016.267918.patch
Type: text/x-patch
Size: 14959 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200602/8d6bbf23/attachment.bin>


More information about the llvm-commits mailing list