Skip to content

Commit 7ce321e

Browse files
committed
[llvm-reduce] Split operands-skip.ll into serial and parallel parts
This fixes a test failure when building with LLVM_ENABLE_THREADS=OFF. Reviewed By: fhahn Differential Revision: https://reviews.llvm.org/D130707
1 parent 46bc1b5 commit 7ce321e

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
; This reuses llvm/test/tools/llvm-reduce/operands-skip.ll
2+
; REQUIRES: thread_support
3+
4+
; RUN: llvm-reduce -j 2 %S/operands-skip.ll -o %t.1 --delta-passes=operands-skip --test FileCheck --test-arg %S/operands-skip.ll --test-arg --match-full-lines --test-arg --check-prefix=INTERESTING --test-arg --input-file
5+
; RUN: FileCheck %S/operands-skip.ll --input-file %t.1 --check-prefixes=REDUCED
6+
7+
; RUN: llvm-reduce -j 4 %S/operands-skip.ll -o %t.2 --delta-passes=operands-skip --test FileCheck --test-arg %S/operands-skip.ll --test-arg --match-full-lines --test-arg --check-prefix=INTERESTING --test-arg --input-file
8+
; RUN: FileCheck %S/operands-skip.ll --input-file %t.2 --check-prefixes=REDUCED

llvm/test/tools/llvm-reduce/operands-skip.ll

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
; RUN: llvm-reduce %s -o %t --delta-passes=operands-skip --test FileCheck --test-arg %s --test-arg --match-full-lines --test-arg --check-prefix=INTERESTING --test-arg --input-file
22
; RUN: FileCheck %s --input-file %t --check-prefixes=REDUCED
33

4-
; RUN: llvm-reduce -j 2 %s -o %t.1 --delta-passes=operands-skip --test FileCheck --test-arg %s --test-arg --match-full-lines --test-arg --check-prefix=INTERESTING --test-arg --input-file
5-
; RUN: FileCheck %s --input-file %t.1 --check-prefixes=REDUCED
6-
7-
; RUN: llvm-reduce -j 4 %s -o %t.2 --delta-passes=operands-skip --test FileCheck --test-arg %s --test-arg --match-full-lines --test-arg --check-prefix=INTERESTING --test-arg --input-file
8-
; RUN: FileCheck %s --input-file %t.2 --check-prefixes=REDUCED
9-
10-
114
; INTERESTING: store i32 43, i32* {{(%imm|%indirect)}}, align 4
125
; REDUCED: store i32 43, i32* %imm, align 4
136

0 commit comments

Comments
 (0)