[PATCH] D130707: [llvm-reduce] Split operands-skip.ll into serial and parallel parts

David Spickett via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 28 07:21:27 PDT 2022


DavidSpickett created this revision.
Herald added a project: All.
DavidSpickett requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This fixes a test failure when building with LLVM_ENABLE_THREADS=OFF.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D130707

Files:
  llvm/test/tools/llvm-reduce/operands-skip-parallel.ll
  llvm/test/tools/llvm-reduce/operands-skip.ll


Index: llvm/test/tools/llvm-reduce/operands-skip.ll
===================================================================
--- llvm/test/tools/llvm-reduce/operands-skip.ll
+++ llvm/test/tools/llvm-reduce/operands-skip.ll
@@ -1,13 +1,8 @@
+; This test checks single threaded/no threading. The IR is the same as operands-skip-parallel.ll.
+
 ; 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
 ; RUN: FileCheck %s --input-file %t --check-prefixes=REDUCED
 
-; 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
-; RUN: FileCheck %s --input-file %t.1 --check-prefixes=REDUCED
-
-; 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
-; RUN: FileCheck %s --input-file %t.2 --check-prefixes=REDUCED
-
-
 ; INTERESTING: store i32 43, i32* {{(%imm|%indirect)}}, align 4
 ; REDUCED:     store i32 43, i32* %imm, align 4
 
Index: llvm/test/tools/llvm-reduce/operands-skip-parallel.ll
===================================================================
--- llvm/test/tools/llvm-reduce/operands-skip-parallel.ll
+++ llvm/test/tools/llvm-reduce/operands-skip-parallel.ll
@@ -1,5 +1,5 @@
-; 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
-; RUN: FileCheck %s --input-file %t --check-prefixes=REDUCED
+; This test checks threaded operation. The IR is identical to operands-skip.ll.
+; REQUIRES: thread_support
 
 ; 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
 ; RUN: FileCheck %s --input-file %t.1 --check-prefixes=REDUCED


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130707.448336.patch
Type: text/x-patch
Size: 2074 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220728/7635c6dd/attachment.bin>


More information about the llvm-commits mailing list