[NFC] Port all Analysis/MemorySSA tests to `-passes=` syntax
authorRoman Lebedev <lebedev.ri@gmail.com>
Thu, 8 Dec 2022 21:49:41 +0000 (00:49 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Thu, 8 Dec 2022 22:04:45 +0000 (01:04 +0300)
14 files changed:
llvm/test/Analysis/MemorySSA/debugvalue.ll
llvm/test/Analysis/MemorySSA/loop-rotate-inv-template.ll
llvm/test/Analysis/MemorySSA/loop-rotate-simplified-clone.ll
llvm/test/Analysis/MemorySSA/loop-rotate-valuemap.ll
llvm/test/Analysis/MemorySSA/loop-unswitch.ll
llvm/test/Analysis/MemorySSA/nondeterminism.ll
llvm/test/Analysis/MemorySSA/pr40037.ll
llvm/test/Analysis/MemorySSA/pr40749_2.ll
llvm/test/Analysis/MemorySSA/pr42294.ll
llvm/test/Analysis/MemorySSA/pr43044.ll
llvm/test/Analysis/MemorySSA/pr43641.ll
llvm/test/Analysis/MemorySSA/pr44029.ll
llvm/test/Analysis/MemorySSA/pr46574.ll
llvm/test/Analysis/MemorySSA/simple_loop_unswitch_nontrivial.ll

index d098139..81de885 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -temporarily-allow-old-pass-syntax -disable-basic-aa -loop-rotate -verify-memoryssa -S %s | FileCheck %s
+; RUN: opt -disable-basic-aa -passes=loop-rotate -verify-memoryssa -S %s | FileCheck %s
 ; REQUIRES: asserts
 
 ; CHECK-LABEL: @f_w4_i2
index 8be2fff..fba99ad 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -temporarily-allow-old-pass-syntax -disable-output -loop-rotate -verify-memoryssa %s
+; RUN: opt -disable-output -passes=loop-rotate -verify-memoryssa %s
 ; REQUIRES: asserts
 
 ; Function Attrs: nounwind
index f839e3a..343c74c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -temporarily-allow-old-pass-syntax -verify-memoryssa -loop-rotate %s -S | FileCheck %s
+; RUN: opt -verify-memoryssa -passes=loop-rotate %s -S | FileCheck %s
 ; REQUIRES: asserts
 
 ; CHECK-LABEL: @test()
index d8204b2..1a04480 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -temporarily-allow-old-pass-syntax -loop-rotate %s -S | FileCheck %s
+; RUN: opt -passes=loop-rotate %s -S | FileCheck %s
 ; REQUIRES: asserts
 
 ; Check that loop rotate keeps proper mapping between cloned instructions,
index dfc9b81..107776d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -temporarily-allow-old-pass-syntax -S -simple-loop-unswitch -disable-basic-aa -verify-memoryssa < %s | FileCheck %s
+; RUN: opt -S -passes=simple-loop-unswitch -disable-basic-aa -verify-memoryssa < %s | FileCheck %s
 ; REQUIRES: asserts
 
 target triple = "x86_64-unknown-linux-gnu"
index d777310..90902e3 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -temporarily-allow-old-pass-syntax -simplifycfg -S --preserve-ll-uselistorder %s | FileCheck %s
+; RUN: opt -passes=simplifycfg -S --preserve-ll-uselistorder %s | FileCheck %s
 ; REQUIRES: x86-registered-target
 ; CHECK-LABEL: @n
 ; CHECK: uselistorder i16 0, { 3, 2, 4, 1, 5, 0, 6 }
index 1a63129..656328d 100644 (file)
@@ -1,5 +1,5 @@
 ; REQUIRES: asserts
-; RUN: opt -temporarily-allow-old-pass-syntax -S -simple-loop-unswitch -verify-memoryssa  < %s | FileCheck %s
+; RUN: opt -S -passes=simple-loop-unswitch -verify-memoryssa  < %s | FileCheck %s
 
 target datalayout = "E-m:e-i1:8:16-i8:8:16-i64:64-f128:64-v128:64-a:8:16-n32:64"
 target triple = "s390x-ibm-linux"
index 0ebdb37..8bfef3f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -temporarily-allow-old-pass-syntax -S -licm -simple-loop-unswitch -verify-memoryssa %s | FileCheck %s
+; RUN: opt -S -passes=licm,simple-loop-unswitch -verify-memoryssa %s | FileCheck %s
 ; REQUIRES: asserts
 target datalayout = "E-m:e-i1:8:16-i8:8:16-i64:64-f128:64-v128:64-a:8:16-n32:64"
 target triple = "s390x-ibm-linux"
index 63388f1..7ea1dff 100644 (file)
@@ -1,6 +1,6 @@
 ; REQUIRES: asserts
-; RUN: opt -temporarily-allow-old-pass-syntax -loop-rotate -licm %s -disable-output -debug-only=licm 2>&1 | FileCheck %s -check-prefix=LICM
-; RUN: opt -temporarily-allow-old-pass-syntax -loop-rotate -licm %s -S  | FileCheck %s
+; RUN: opt -passes='loop-mssa(loop-rotate,licm)' %s -disable-output -debug-only=licm 2>&1 | FileCheck %s -check-prefix=LICM
+; RUN: opt -passes='loop-mssa(loop-rotate,licm)' %s -S  | FileCheck %s
 
 ; LICM-NOT: LICM sinking instruction:   %.pre = load i8, ptr %arrayidx.phi.trans.insert
 
index d542cf3..f4e0ce9 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -temporarily-allow-old-pass-syntax -loop-rotate -licm -verify-memoryssa %s -S | FileCheck %s
+; RUN: opt -passes='loop-mssa(loop-rotate,licm)' -verify-memoryssa %s -S | FileCheck %s
 ; REQUIRES: asserts
 
 target datalayout = "E-m:e-i1:8:16-i8:8:16-i64:64-f128:64-v128:64-a:8:16-n32:64"
index b8dd2c9..d4b3531 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -temporarily-allow-old-pass-syntax -simple-loop-unswitch -enable-nontrivial-unswitch -verify-memoryssa -S < %s | FileCheck %s
+; RUN: opt -passes=simple-loop-unswitch -enable-nontrivial-unswitch -verify-memoryssa -S < %s | FileCheck %s
 ; REQUIRES: asserts
 
 ; CHECK-LABEL: @c
index a110320..785ccff 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -temporarily-allow-old-pass-syntax -loop-simplifycfg -verify-memoryssa -S < %s | FileCheck %s
+; RUN: opt -passes=loop-simplifycfg -verify-memoryssa -S < %s | FileCheck %s
 ; REQUIRES: asserts
 
 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
index 17289e8..0b5da6e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -temporarily-allow-old-pass-syntax -loop-instsimplify -loop-simplifycfg -licm -simple-loop-unswitch -enable-nontrivial-unswitch %s -disable-output
+; RUN: opt -passes='loop-mssa(loop-instsimplify,loop-simplifycfg,licm,simple-loop-unswitch)' -enable-nontrivial-unswitch %s -disable-output
 ; REQUIRES: asserts
 
 %0 = type { i24, i32, i32, i8 }
index a9e6fd4..b87b8e7 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -temporarily-allow-old-pass-syntax -simple-loop-unswitch -enable-nontrivial-unswitch -verify-memoryssa -S %s | FileCheck %s
+; RUN: opt -passes=simple-loop-unswitch -enable-nontrivial-unswitch -verify-memoryssa -S %s | FileCheck %s
 ; REQUIRES: asserts
 
 target triple = "x86_64-unknown-linux-gnu"