diff options
| author | Teresa Johnson <tejohnson@google.com> | 2018-06-28 20:07:47 +0000 |
|---|---|---|
| committer | Teresa Johnson <tejohnson@google.com> | 2018-06-28 20:07:47 +0000 |
| commit | e87868b7e9178cc404dd9c475fdf56de5d4fb3c2 (patch) | |
| tree | 861cecb07ae185453805407702fb41fa9981ccff /llvm/test/Transforms/Inline | |
| parent | 23d82820470a200c3d80e4f9d4f2102d1c7b17b8 (diff) | |
| download | bcm5719-llvm-e87868b7e9178cc404dd9c475fdf56de5d4fb3c2.tar.gz bcm5719-llvm-e87868b7e9178cc404dd9c475fdf56de5d4fb3c2.zip | |
[ThinLTO] Port InlinerFunctionImportStats handling to new PM
Summary:
The InlinerFunctionImportStats will collect and dump stats regarding how
many function inlined into the module were imported by ThinLTO.
Reviewers: wmi, dexonsmith
Subscribers: mehdi_amini, inglorion, llvm-commits, eraman
Differential Revision: https://reviews.llvm.org/D48729
llvm-svn: 335914
Diffstat (limited to 'llvm/test/Transforms/Inline')
| -rw-r--r-- | llvm/test/Transforms/Inline/inline_stats.ll | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/test/Transforms/Inline/inline_stats.ll b/llvm/test/Transforms/Inline/inline_stats.ll index bc005b6afd5..40d6cb30b69 100644 --- a/llvm/test/Transforms/Inline/inline_stats.ll +++ b/llvm/test/Transforms/Inline/inline_stats.ll @@ -1,6 +1,11 @@ +; First with legacy PM ; RUN: opt -S -inline -inliner-function-import-stats=basic < %s 2>&1 | FileCheck %s -check-prefix=CHECK-BASIC -check-prefix=CHECK ; RUN: opt -S -inline -inliner-function-import-stats=verbose < %s 2>&1 | FileCheck %s -check-prefix="CHECK-VERBOSE" -check-prefix=CHECK +; Do again with new PM +; RUN: opt -S -passes=inline -inliner-function-import-stats=basic < %s 2>&1 | FileCheck %s -check-prefix=CHECK-BASIC -check-prefix=CHECK +; RUN: opt -S -passes=inline -inliner-function-import-stats=verbose < %s 2>&1 | FileCheck %s -check-prefix="CHECK-VERBOSE" -check-prefix=CHECK + ; CHECK: ------- Dumping inliner stats for [<stdin>] ------- ; CHECK-BASIC-NOT: -- List of inlined functions: ; CHECK-BASIC-NOT: -- Inlined not imported function |

