[llvm] 00cf717 - [test] Use -passes syntax in Feature/OperandBundles lit tests

Bjorn Pettersson via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 27 01:13:25 PST 2021


Author: Bjorn Pettersson
Date: 2021-11-27T09:52:55+01:00
New Revision: 00cf717f51d76ffa62b2525a4893e20e23750e21

URL: https://github.com/llvm/llvm-project/commit/00cf717f51d76ffa62b2525a4893e20e23750e21
DIFF: https://github.com/llvm/llvm-project/commit/00cf717f51d76ffa62b2525a4893e20e23750e21.diff

LOG: [test] Use -passes syntax in Feature/OperandBundles lit tests

Simply use the new PM syntax instead of the deprecated legacy PM
syntax when specifying the opt pipeline in some regression tests.

Differential Revision: https://reviews.llvm.org/D114518

Added: 
    

Modified: 
    llvm/test/Feature/OperandBundles/adce.ll
    llvm/test/Feature/OperandBundles/basic-aa-argmemonly.ll
    llvm/test/Feature/OperandBundles/dse.ll
    llvm/test/Feature/OperandBundles/early-cse.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Feature/OperandBundles/adce.ll b/llvm/test/Feature/OperandBundles/adce.ll
index fa4e045fdd1e2..2edb7d7452b2e 100644
--- a/llvm/test/Feature/OperandBundles/adce.ll
+++ b/llvm/test/Feature/OperandBundles/adce.ll
@@ -1,4 +1,4 @@
-; RUN: opt -S -adce < %s | FileCheck %s
+; RUN: opt -S -passes=adce < %s | FileCheck %s
 
 ; While it is normally okay to DCE out calls to @readonly_function and
 ; @readnone_function, we cannot do that if they're carrying operand

diff  --git a/llvm/test/Feature/OperandBundles/basic-aa-argmemonly.ll b/llvm/test/Feature/OperandBundles/basic-aa-argmemonly.ll
index 61f514324aa1d..7b1ba1fd79c75 100644
--- a/llvm/test/Feature/OperandBundles/basic-aa-argmemonly.ll
+++ b/llvm/test/Feature/OperandBundles/basic-aa-argmemonly.ll
@@ -1,4 +1,4 @@
-; RUN: opt -S -basic-aa -gvn < %s | FileCheck %s
+; RUN: opt -S -aa-pipeline=basic-aa -passes=gvn < %s | FileCheck %s
 
 declare void @argmemonly_function(i32 *) argmemonly
 

diff  --git a/llvm/test/Feature/OperandBundles/dse.ll b/llvm/test/Feature/OperandBundles/dse.ll
index a2183d0457c7d..6fd51620da625 100644
--- a/llvm/test/Feature/OperandBundles/dse.ll
+++ b/llvm/test/Feature/OperandBundles/dse.ll
@@ -1,4 +1,4 @@
-; RUN: opt -S -dse < %s | FileCheck %s
+; RUN: opt -S -passes=dse < %s | FileCheck %s
 
 declare void @f()
 declare noalias i8* @malloc(i32) nounwind

diff  --git a/llvm/test/Feature/OperandBundles/early-cse.ll b/llvm/test/Feature/OperandBundles/early-cse.ll
index 1b93fe7312bfd..369c7c8f37d18 100644
--- a/llvm/test/Feature/OperandBundles/early-cse.ll
+++ b/llvm/test/Feature/OperandBundles/early-cse.ll
@@ -1,4 +1,4 @@
-; RUN: opt -S -early-cse -earlycse-debug-hash < %s | FileCheck %s
+; RUN: opt -S -passes=early-cse -earlycse-debug-hash < %s | FileCheck %s
 
 ; While it is normally okay to do memory optimizations over calls to
 ; @readonly_function and @readnone_function, we cannot do that if


        


More information about the llvm-commits mailing list