[llvm] 7ce321e - [llvm-reduce] Split operands-skip.ll into serial and parallel parts

David Spickett via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 4 01:51:52 PDT 2022


Author: David Spickett
Date: 2022-08-04T08:51:47Z
New Revision: 7ce321e5b0a431d8fde69ce03d1bd7254a7dc00c

URL: https://github.com/llvm/llvm-project/commit/7ce321e5b0a431d8fde69ce03d1bd7254a7dc00c
DIFF: https://github.com/llvm/llvm-project/commit/7ce321e5b0a431d8fde69ce03d1bd7254a7dc00c.diff

LOG: [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

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

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

Removed: 
    


################################################################################
diff  --git a/llvm/test/tools/llvm-reduce/operands-skip-parallel.ll b/llvm/test/tools/llvm-reduce/operands-skip-parallel.ll
new file mode 100644
index 000000000000..5d6f1083b84f
--- /dev/null
+++ b/llvm/test/tools/llvm-reduce/operands-skip-parallel.ll
@@ -0,0 +1,8 @@
+; This reuses llvm/test/tools/llvm-reduce/operands-skip.ll
+; REQUIRES: thread_support
+
+; 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
+; RUN: FileCheck %S/operands-skip.ll --input-file %t.1 --check-prefixes=REDUCED
+
+; 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
+; RUN: FileCheck %S/operands-skip.ll --input-file %t.2 --check-prefixes=REDUCED

diff  --git a/llvm/test/tools/llvm-reduce/operands-skip.ll b/llvm/test/tools/llvm-reduce/operands-skip.ll
index da37f613e8e5..5f13d59f939d 100644
--- a/llvm/test/tools/llvm-reduce/operands-skip.ll
+++ b/llvm/test/tools/llvm-reduce/operands-skip.ll
@@ -1,13 +1,6 @@
 ; 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
 


        


More information about the llvm-commits mailing list