Skip to content

Commit 5efcec9

Browse files
committed
Address minor issues and improvements identified in tests.
1 parent 4cb165c commit 5efcec9

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

llvm/test/ThinLTO/X86/dtlto/imports.ll

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,15 @@
22

33
RUN: rm -rf %t && split-file %s %t && cd %t
44

5-
; Compile bitcode.
5+
; Generate ThinLTO bitcode files.
66
RUN: opt -thinlto-bc 0.ll -o 0.bc -O2
77
RUN: opt -thinlto-bc 1.ll -o 1.bc -O2
88

99
; Define a substitution to share the common DTLTO arguments. Note that the use
1010
; of validate.py will cause a failure as it does not create output files.
1111
DEFINE: %{command} = llvm-lto2 run 0.bc 1.bc -o t.o \
1212
DEFINE: -dtlto-distributor=%python \
13-
DEFINE: -dtlto-distributor-arg=%llvm_src_root/utils/dtlto/validate.py,0.bc,1.bc \
14-
DEFINE: -thinlto-emit-indexes \
13+
DEFINE: -dtlto-distributor-arg=%llvm_src_root/utils/dtlto/validate.py \
1514
DEFINE: -r=0.bc,g,px \
1615
DEFINE: -r=1.bc,f,px \
1716
DEFINE: -r=1.bc,g
@@ -38,7 +37,7 @@ INPUTS-NEXT: ]
3837
ERR: failed: DTLTO backend compilation: cannot open native object file:
3938

4039
; Check that imports files are not created even if -save-temps is active.
41-
RUN: not %{command} -save-temps 2>&1 \
40+
RUN: not %{command} -save-temps 2>&1 \
4241
RUN: | FileCheck %s --check-prefixes=ERR
4342
RUN: ls | FileCheck %s --check-prefix=NOIMPORTFILES
4443
NOIMPORTFILES-NOT: imports

llvm/test/ThinLTO/X86/dtlto/summary.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; Check that DTLTO creates identical summary index shard files as are created
22
; for an equivalent ThinLTO link.
33

4-
RUN: rm -rf %t && split-file %s %t && cd %t
4+
RUN: rm -rf %t && split-file %s %t && cd %t
55

66
; Generate ThinLTO bitcode files.
77
RUN: opt -thinlto-bc t1.ll -o t1.bc

0 commit comments

Comments
 (0)