[llvm] 4dd6a3f - [NFC] Port last few Other tests to `-passes=` syntax

Roman Lebedev via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 8 15:07:49 PST 2022


Author: Roman Lebedev
Date: 2022-12-09T02:07:27+03:00
New Revision: 4dd6a3f61101d5cbe892aac3608e5ed4389ee6ef

URL: https://github.com/llvm/llvm-project/commit/4dd6a3f61101d5cbe892aac3608e5ed4389ee6ef
DIFF: https://github.com/llvm/llvm-project/commit/4dd6a3f61101d5cbe892aac3608e5ed4389ee6ef.diff

LOG: [NFC] Port last few Other tests to `-passes=` syntax

Added: 
    

Modified: 
    llvm/test/Other/opt-On.ll
    llvm/test/Other/scalable-vector-array.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Other/opt-On.ll b/llvm/test/Other/opt-On.ll
index ffd785ade744..49f2d9d10dee 100644
--- a/llvm/test/Other/opt-On.ll
+++ b/llvm/test/Other/opt-On.ll
@@ -1,6 +1,6 @@
 ; RUN: not opt -O1 -O2 < %s 2>&1 | FileCheck %s --check-prefix=MULTIPLE
 ; RUN: not opt -O1 -passes='no-op-module' < %s 2>&1 | FileCheck %s --check-prefix=BOTH
-; RUN: not opt -O1 --gvn < %s 2>&1 | FileCheck %s --check-prefix=BOTH
+; RUN: not opt -O1 -passes=gvn < %s 2>&1 | FileCheck %s --check-prefix=BOTH
 ; RUN: opt -O0 < %s -S 2>&1 | FileCheck %s --check-prefix=OPT
 ; RUN: opt -O1 < %s -S 2>&1 | FileCheck %s --check-prefix=OPT
 ; RUN: opt -O2 < %s -S 2>&1 | FileCheck %s --check-prefix=OPT

diff  --git a/llvm/test/Other/scalable-vector-array.ll b/llvm/test/Other/scalable-vector-array.ll
index b5c7e90d792b..4119bb6953b4 100644
--- a/llvm/test/Other/scalable-vector-array.ll
+++ b/llvm/test/Other/scalable-vector-array.ll
@@ -1,4 +1,4 @@
-; RUN: not opt -S -verify < %s 2>&1 | FileCheck %s
+; RUN: not opt -S -passes=verify < %s 2>&1 | FileCheck %s
 
 ;; Arrays cannot contain scalable vectors; make sure we detect them even
 ;; when nested inside other aggregates.


        


More information about the llvm-commits mailing list