summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/gold
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2017-02-02 17:33:53 +0000
committerTeresa Johnson <tejohnson@google.com>2017-02-02 17:33:53 +0000
commit95597ae2c925842f9897c92dba2aa770d62cdecb (patch)
treecefa76ea544874fb4adf317311475777ce8a9bd8 /llvm/test/tools/gold
parent9e71ceeaf94da094506ad3c9bdd5aae4f0a68359 (diff)
downloadbcm5719-llvm-95597ae2c925842f9897c92dba2aa770d62cdecb.tar.gz
bcm5719-llvm-95597ae2c925842f9897c92dba2aa770d62cdecb.zip
[ThinLTO] PrintStatistics when we exit early for thinlto-index-only
Summary: This is necessary to get stats from the ThinLink printed before the early exit when compiling in a distributed build. Reviewers: mehdi_amini Subscribers: Prazek, llvm-commits Differential Revision: https://reviews.llvm.org/D29461 llvm-svn: 293908
Diffstat (limited to 'llvm/test/tools/gold')
-rw-r--r--llvm/test/tools/gold/X86/stats.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/tools/gold/X86/stats.ll b/llvm/test/tools/gold/X86/stats.ll
index 15aa080d6fc..255a2bd90bc 100644
--- a/llvm/test/tools/gold/X86/stats.ll
+++ b/llvm/test/tools/gold/X86/stats.ll
@@ -5,6 +5,13 @@
; RUN: -m elf_x86_64 \
; RUN: -plugin-opt=-stats %t.o -o %t2 2>&1 | FileCheck %s
+; RUN: llvm-as %s -o %t.o
+; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so -shared \
+; RUN: -m elf_x86_64 \
+; RUN: -plugin-opt=thinlto \
+; RUN: -plugin-opt=thinlto-index-only \
+; RUN: -plugin-opt=-stats %t.o -o %t2 2>&1 | FileCheck %s
+
; CHECK: Statistics Collected
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
OpenPOWER on IntegriCloud