[llvm] 57bd67a - [NewPM][test] Use -passes syntax in SpeculativeExecution lit tests

Bjorn Pettersson via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 20 06:17:01 PDT 2021


Author: Bjorn Pettersson
Date: 2021-10-20T15:16:17+02:00
New Revision: 57bd67abfcb8799cbee204e5fd92fe60bce3f9bf

URL: https://github.com/llvm/llvm-project/commit/57bd67abfcb8799cbee204e5fd92fe60bce3f9bf
DIFF: https://github.com/llvm/llvm-project/commit/57bd67abfcb8799cbee204e5fd92fe60bce3f9bf.diff

LOG: [NewPM][test] Use -passes syntax in SpeculativeExecution lit tests

The legacy PM is deprecated, so use the new PM syntax in lit tests
running the speculative-execution pass.

Added: 
    

Modified: 
    llvm/test/Transforms/SpeculativeExecution/PR46267.ll
    llvm/test/Transforms/SpeculativeExecution/spec-calls.ll
    llvm/test/Transforms/SpeculativeExecution/spec-casts.ll
    llvm/test/Transforms/SpeculativeExecution/spec-compares.ll
    llvm/test/Transforms/SpeculativeExecution/spec-other-inseltpoison.ll
    llvm/test/Transforms/SpeculativeExecution/spec-other.ll
    llvm/test/Transforms/SpeculativeExecution/spec.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/SpeculativeExecution/PR46267.ll b/llvm/test/Transforms/SpeculativeExecution/PR46267.ll
index 5c61b225a7f5..fcf34f3ae434 100644
--- a/llvm/test/Transforms/SpeculativeExecution/PR46267.ll
+++ b/llvm/test/Transforms/SpeculativeExecution/PR46267.ll
@@ -1,4 +1,3 @@
-; RUN: opt < %s -S -speculative-execution | FileCheck %s
 ; RUN: opt < %s -S -passes='speculative-execution' | FileCheck %s
 
 %class.B = type { i32 (...)** }

diff  --git a/llvm/test/Transforms/SpeculativeExecution/spec-calls.ll b/llvm/test/Transforms/SpeculativeExecution/spec-calls.ll
index 5fa9059a503c..0c43407acdab 100644
--- a/llvm/test/Transforms/SpeculativeExecution/spec-calls.ll
+++ b/llvm/test/Transforms/SpeculativeExecution/spec-calls.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -S -speculative-execution \
+; RUN: opt < %s -S -passes=speculative-execution \
 ; RUN:   -spec-exec-max-speculation-cost 4 -spec-exec-max-not-hoisted 3 \
 ; RUN:   | FileCheck %s
 

diff  --git a/llvm/test/Transforms/SpeculativeExecution/spec-casts.ll b/llvm/test/Transforms/SpeculativeExecution/spec-casts.ll
index 223458730800..396f7ab0032c 100644
--- a/llvm/test/Transforms/SpeculativeExecution/spec-casts.ll
+++ b/llvm/test/Transforms/SpeculativeExecution/spec-casts.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -S -speculative-execution \
+; RUN: opt < %s -S -passes=speculative-execution \
 ; RUN:   -spec-exec-max-speculation-cost 4 -spec-exec-max-not-hoisted 3 \
 ; RUN:   | FileCheck %s
 

diff  --git a/llvm/test/Transforms/SpeculativeExecution/spec-compares.ll b/llvm/test/Transforms/SpeculativeExecution/spec-compares.ll
index 0d97374456c9..f6a34e4eeede 100644
--- a/llvm/test/Transforms/SpeculativeExecution/spec-compares.ll
+++ b/llvm/test/Transforms/SpeculativeExecution/spec-compares.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -S -speculative-execution \
+; RUN: opt < %s -S -passes=speculative-execution \
 ; RUN:   -spec-exec-max-speculation-cost 4 -spec-exec-max-not-hoisted 3 \
 ; RUN:   | FileCheck %s
 

diff  --git a/llvm/test/Transforms/SpeculativeExecution/spec-other-inseltpoison.ll b/llvm/test/Transforms/SpeculativeExecution/spec-other-inseltpoison.ll
index 9dd7c05ea9c9..9ac8390438b1 100644
--- a/llvm/test/Transforms/SpeculativeExecution/spec-other-inseltpoison.ll
+++ b/llvm/test/Transforms/SpeculativeExecution/spec-other-inseltpoison.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -S -speculative-execution \
+; RUN: opt < %s -S -passes=speculative-execution \
 ; RUN:   -spec-exec-max-speculation-cost 4 -spec-exec-max-not-hoisted 3 \
 ; RUN:   | FileCheck %s
 

diff  --git a/llvm/test/Transforms/SpeculativeExecution/spec-other.ll b/llvm/test/Transforms/SpeculativeExecution/spec-other.ll
index 43ee9cfb1508..f842cb9a0e48 100644
--- a/llvm/test/Transforms/SpeculativeExecution/spec-other.ll
+++ b/llvm/test/Transforms/SpeculativeExecution/spec-other.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -S -speculative-execution \
+; RUN: opt < %s -S -passes=speculative-execution \
 ; RUN:   -spec-exec-max-speculation-cost 4 -spec-exec-max-not-hoisted 3 \
 ; RUN:   | FileCheck %s
 

diff  --git a/llvm/test/Transforms/SpeculativeExecution/spec.ll b/llvm/test/Transforms/SpeculativeExecution/spec.ll
index 0aa718f031a2..3150e5b2566d 100644
--- a/llvm/test/Transforms/SpeculativeExecution/spec.ll
+++ b/llvm/test/Transforms/SpeculativeExecution/spec.ll
@@ -1,7 +1,4 @@
-; RUN: opt < %s -S -speculative-execution \
-; RUN:   -spec-exec-max-speculation-cost 4 -spec-exec-max-not-hoisted 3 \
-; RUN:   | FileCheck %s
-; RUN: opt < %s -S -passes='speculative-execution' \
+; RUN: opt < %s -S -passes=speculative-execution \
 ; RUN:   -spec-exec-max-speculation-cost 4 -spec-exec-max-not-hoisted 3 \
 ; RUN:   | FileCheck %s
 


        


More information about the llvm-commits mailing list