From e0384663d67bfeb040e11b86bdb9e9a5fc9e8099 Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Wed, 14 Sep 2016 21:04:59 +0000 Subject: [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 --- test/ThinLTO/X86/funcimport.ll | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/ThinLTO') 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 -- cgit v1.2.1