[ThinLTO] Correct counting of functions in inliner stats
authorTeresa Johnson <tejohnson@google.com>
Fri, 24 Mar 2017 17:59:06 +0000 (17:59 +0000)
committerTeresa Johnson <tejohnson@google.com>
Fri, 24 Mar 2017 17:59:06 +0000 (17:59 +0000)
commit428b9e0627883ff2b736f191f66dfdc0ef6b48e0
tree44a19c25c68c118621ac8f6eb471182f9e47e1c1
parent80e3d5bb24ad24f42c8a2da8e8091ddc17dfee61
[ThinLTO] Correct counting of functions in inliner stats

Summary: Declarations need to be filtered out when counting functions.

Reviewers: eraman

Subscribers: Prazek, llvm-commits

Differential Revision: https://reviews.llvm.org/D31336

llvm-svn: 298720
llvm/lib/Transforms/Utils/ImportedFunctionsInliningStatistics.cpp
llvm/test/Transforms/Inline/inline_stats.ll