summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/FunctionImport/import_stats.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Transforms/FunctionImport/import_stats.ll')
-rw-r--r--llvm/test/Transforms/FunctionImport/import_stats.ll5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/test/Transforms/FunctionImport/import_stats.ll b/llvm/test/Transforms/FunctionImport/import_stats.ll
index 43540856bd3..03f5f8f0198 100644
--- a/llvm/test/Transforms/FunctionImport/import_stats.ll
+++ b/llvm/test/Transforms/FunctionImport/import_stats.ll
@@ -1,5 +1,8 @@
; Test to check thin link importing stats
+; -stats requires asserts
+; REQUIRES: asserts
+
; RUN: opt -module-summary %s -o %t.bc
; RUN: opt -module-summary %p/Inputs/import_stats.ll -o %t2.bc
@@ -14,8 +17,10 @@
; RUN: -r %t2.bc,hot,plx \
; RUN: -r %t2.bc,critical,plx \
; RUN: -r %t2.bc,none,plx \
+; RUN: -r %t2.bc,globalvar,plx \
; RUN: 2>&1 | FileCheck %s --check-prefix=THINLINKSTATS
+; THINLINKSTATS-DAG: 1 function-import - Number of global variables thin link decided to import
; THINLINKSTATS-DAG: 1 function-import - Number of critical functions thin link decided to import
; THINLINKSTATS-DAG: 3 function-import - Number of functions thin link decided to import
; THINLINKSTATS-DAG: 1 function-import - Number of hot functions thin link decided to import
OpenPOWER on IntegriCloud