Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / reproduce-lto.s
blob36838f21388ef6656ec073e2dac81853e69bfd3e
1 # REQUIRES: x86
2 ## Show that bitcode files and inputs to LTO-related options are stored in the
3 ## reproduce package and that intermediate files (such as the LTO-compiled
4 ## object) are not.
6 # RUN: rm -rf %t.dir
7 # RUN: mkdir -p %t.dir/build1
8 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.dir/build1/foo.o
9 # RUN: echo > %t.dir/build1/empty_profile.txt
10 # RUN: cd %t.dir
11 # RUN: ld.lld build1/foo.o -o /dev/null --reproduce repro1.tar --lto-sample-profile=%t.dir/build1/empty_profile.txt
12 # RUN: tar tvf repro1.tar | FileCheck %s --implicit-check-not={{.}}
14 # CHECK-DAG: {{.*}} repro1/{{.*}}/empty_profile.txt
15 # CHECK-DAG: {{.*}} repro1/response.txt
16 # CHECK-DAG: {{.*}} repro1/version.txt
17 # CHECK-DAG: {{.*}} repro1/{{.*}}/foo.o