diff options
author | Mehdi Amini <mehdi.amini@apple.com> | 2016-09-14 21:04:59 +0000 |
---|---|---|
committer | Mehdi Amini <mehdi.amini@apple.com> | 2016-09-14 21:04:59 +0000 |
commit | e0384663d67bfeb040e11b86bdb9e9a5fc9e8099 (patch) | |
tree | b4220f5316b9848483a0a63863e9f0c15929fd85 /test/ThinLTO | |
parent | 93e6e5414ded14bcbb233baaaa5567132fee9a0c (diff) | |
download | llvm-e0384663d67bfeb040e11b86bdb9e9a5fc9e8099.tar.gz |
[ThinLTO] Add an option to llvm-lto to print some basic statistics for the index
Differential Revision: https://reviews.llvm.org/D24290
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281537 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ThinLTO')
-rw-r--r-- | test/ThinLTO/X86/funcimport.ll | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ThinLTO/X86/funcimport.ll b/test/ThinLTO/X86/funcimport.ll index ebb4d347b675..41be0ed78f59 100644 --- a/test/ThinLTO/X86/funcimport.ll +++ b/test/ThinLTO/X86/funcimport.ll @@ -3,6 +3,9 @@ ; RUN: opt -module-summary %p/Inputs/funcimport.ll -o %t2.bc ; RUN: llvm-lto -thinlto-action=thinlink -o %t3.bc %t.bc %t2.bc +; RUN: llvm-lto -thinlto-index-stats %t3.bc | FileCheck %s -check-prefix=STATS +; STATS: Index {{.*}} contains 24 nodes (13 functions, 3 alias, 8 globals) and 19 edges (8 refs and 11 calls) + ; Ensure statics are promoted/renamed correctly from this file (all but ; constant variable need promotion). ; RUN: llvm-lto -thinlto-action=promote %t.bc -thinlto-index=%t3.bc -o - | llvm-dis -o - | FileCheck %s --check-prefix=EXPORTSTATIC |