summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/CMakeLists.txt
diff options
context:
space:
mode:
authorPiotr Padlewski <piotr.padlewski@gmail.com>2016-07-29 00:27:16 +0000
committerPiotr Padlewski <piotr.padlewski@gmail.com>2016-07-29 00:27:16 +0000
commit84abc74f2c118311945e1691bc2797a55d35e3e3 (patch)
tree268f9c0d39f6b6477fc00bb8d0384549d3e09eac /llvm/lib/Transforms/Utils/CMakeLists.txt
parent13becd4f43226b7272625180ff497081f058a687 (diff)
downloadbcm5719-llvm-84abc74f2c118311945e1691bc2797a55d35e3e3.tar.gz
bcm5719-llvm-84abc74f2c118311945e1691bc2797a55d35e3e3.zip
Added ThinLTO inlining statistics
Summary: copypasta doc of ImportedFunctionsInliningStatistics class \brief Calculate and dump ThinLTO specific inliner stats. The main statistics are: (1) Number of inlined imported functions, (2) Number of imported functions inlined into importing module (indirect), (3) Number of non imported functions inlined into importing module (indirect). The difference between first and the second is that first stat counts all performed inlines on imported functions, but the second one only the functions that have been eventually inlined to a function in the importing module (by a chain of inlines). Because llvm uses bottom-up inliner, it is possible to e.g. import function `A`, `B` and then inline `B` to `A`, and after this `A` might be too big to be inlined into some other function that calls it. It calculates this statistic by building graph, where the nodes are functions, and edges are performed inlines and then by marking the edges starting from not imported function. If `Verbose` is set to true, then it also dumps statistics per each inlined function, sorted by the greatest inlines count like - number of performed inlines - number of performed inlines to importing module Reviewers: eraman, tejohnson, mehdi_amini Subscribers: mehdi_amini, llvm-commits Differential Revision: https://reviews.llvm.org/D22491 llvm-svn: 277089
Diffstat (limited to 'llvm/lib/Transforms/Utils/CMakeLists.txt')
-rw-r--r--llvm/lib/Transforms/Utils/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Utils/CMakeLists.txt b/llvm/lib/Transforms/Utils/CMakeLists.txt
index 5aec0dce34d..ffd488e8f0e 100644
--- a/llvm/lib/Transforms/Utils/CMakeLists.txt
+++ b/llvm/lib/Transforms/Utils/CMakeLists.txt
@@ -16,6 +16,7 @@ add_llvm_library(LLVMTransformUtils
FunctionImportUtils.cpp
GlobalStatus.cpp
InlineFunction.cpp
+ ImportedFunctionsInliningStatistics.cpp
InstructionNamer.cpp
IntegerDivision.cpp
LCSSA.cpp
OpenPOWER on IntegriCloud