summaryrefslogtreecommitdiffstats
path: root/test/LTO
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2017-02-10 22:11:06 +0000
committerDavide Italiano <davide@freebsd.org>2017-02-10 22:11:06 +0000
commitbec084b99d2bbb8db2a0b00485fc87672812bbf0 (patch)
tree802e0bc0dc156a80bf9d7c6f96c6b4fb094aaba0 /test/LTO
parentae4dfb99948c6b18fbef654a30f167c49fdedef3 (diff)
[LTO] Make these tests robust across multiple iterations.
Same as r294784, but for regular LTO. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294789 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/LTO')
-rw-r--r--test/LTO/X86/diagnostic-handler-remarks-with-hotness.ll1
-rw-r--r--test/LTO/X86/diagnostic-handler-remarks.ll1
2 files changed, 2 insertions, 0 deletions
diff --git a/test/LTO/X86/diagnostic-handler-remarks-with-hotness.ll b/test/LTO/X86/diagnostic-handler-remarks-with-hotness.ll
index e5d53c7774a1..afb46875d332 100644
--- a/test/LTO/X86/diagnostic-handler-remarks-with-hotness.ll
+++ b/test/LTO/X86/diagnostic-handler-remarks-with-hotness.ll
@@ -2,6 +2,7 @@
; with -lto-pass-remarks-with-hotness.
; RUN: llvm-as < %s >%t.bc
+; RUN: rm -f %t.yaml*
; RUN: llvm-lto -lto-pass-remarks-output=%t.yaml \
; RUN: -lto-pass-remarks-with-hotness \
; RUN: -exported-symbol _func2 \
diff --git a/test/LTO/X86/diagnostic-handler-remarks.ll b/test/LTO/X86/diagnostic-handler-remarks.ll
index 456bdb5419c8..a78e23e7a766 100644
--- a/test/LTO/X86/diagnostic-handler-remarks.ll
+++ b/test/LTO/X86/diagnostic-handler-remarks.ll
@@ -28,6 +28,7 @@
; RUN: llvm-nm %t.o | FileCheck %s -check-prefix NM
; Optimization records are collected regardless of the diagnostic handler
+; RUN: rm -f %t.yaml*
; RUN: llvm-lto -lto-pass-remarks-output=%t.yaml \
; RUN: -exported-symbol _func2 \
; RUN: -exported-symbol _main -o %t.o %t.bc 2>&1 | \