[NFC] Port all LoopFusion tests to `-passes=` syntax
authorRoman Lebedev <lebedev.ri@gmail.com>
Wed, 7 Dec 2022 23:27:27 +0000 (02:27 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Wed, 7 Dec 2022 23:38:46 +0000 (02:38 +0300)
28 files changed:
llvm/test/Transforms/LoopFusion/cannot_fuse.ll
llvm/test/Transforms/LoopFusion/diagnostics_analysis.ll
llvm/test/Transforms/LoopFusion/diagnostics_missed.ll
llvm/test/Transforms/LoopFusion/double_loop_nest_inner_guard.ll
llvm/test/Transforms/LoopFusion/four_loops.ll
llvm/test/Transforms/LoopFusion/guarded.ll
llvm/test/Transforms/LoopFusion/guarded_peel.ll
llvm/test/Transforms/LoopFusion/guarded_unsafeblock_peel.ll
llvm/test/Transforms/LoopFusion/hoist_load.ll
llvm/test/Transforms/LoopFusion/hoist_preheader.ll
llvm/test/Transforms/LoopFusion/hoist_store.ll
llvm/test/Transforms/LoopFusion/inner_loops.ll
llvm/test/Transforms/LoopFusion/loop_nest.ll
llvm/test/Transforms/LoopFusion/no_sink_hoist.ll
llvm/test/Transforms/LoopFusion/no_sink_hoist_atomic.ll
llvm/test/Transforms/LoopFusion/no_sink_hoist_inner_barrier.ll
llvm/test/Transforms/LoopFusion/no_sink_hoist_load.ll
llvm/test/Transforms/LoopFusion/no_sink_hoist_store.ll
llvm/test/Transforms/LoopFusion/no_sink_hoist_unknown_function.ll
llvm/test/Transforms/LoopFusion/no_sink_hoist_volatile.ll
llvm/test/Transforms/LoopFusion/nonadjacent_peel.ll
llvm/test/Transforms/LoopFusion/peel.ll
llvm/test/Transforms/LoopFusion/pr48060.ll
llvm/test/Transforms/LoopFusion/simple.ll
llvm/test/Transforms/LoopFusion/sink_load.ll
llvm/test/Transforms/LoopFusion/sink_preheader.ll
llvm/test/Transforms/LoopFusion/sink_store.ll
llvm/test/Transforms/LoopFusion/triple_loop_nest_inner_guard.ll

index a4356dd..d76c922 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -loop-simplify -loop-fusion -debug-only=loop-fusion -disable-output < %s 2>&1 | FileCheck %s
+; RUN: opt -S -passes=loop-simplify,loop-fusion -debug-only=loop-fusion -disable-output < %s 2>&1 | FileCheck %s
 ; REQUIRES: asserts
 
 @B = common global [1024 x i32] zeroinitializer, align 16
index e045c16..8f4a5dc 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -loop-fusion -pass-remarks-analysis=loop-fusion -disable-output < %s 2>&1 | FileCheck %s
+; RUN: opt -S -passes=loop-fusion -pass-remarks-analysis=loop-fusion -disable-output < %s 2>&1 | FileCheck %s
 ; REQUIRES: asserts
 
 @B = common global [1024 x i32] zeroinitializer, align 16
index 1a75c87..99ce0b0 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -loop-fusion -pass-remarks-missed=loop-fusion -disable-output < %s 2>&1 | FileCheck %s
+; RUN: opt -S -passes=loop-fusion -pass-remarks-missed=loop-fusion -disable-output < %s 2>&1 | FileCheck %s
 ; REQUIRES: asserts
 
 target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
index d94c222..cd79214 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -loop-fusion < %s 2>&1 | FileCheck %s
+; RUN: opt -S -passes=loop-fusion < %s 2>&1 | FileCheck %s
 
 ; Verify that LoopFusion can fuse two double-loop nests with guarded inner
 ; loops. Loops are in canonical form.
index 8f3822b..070632a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -loop-fusion < %s | FileCheck %s
+; RUN: opt -S -passes=loop-fusion < %s | FileCheck %s
 
 @A = common global [1024 x i32] zeroinitializer, align 16
 @B = common global [1024 x i32] zeroinitializer, align 16
index f71a2fa..b52cc33 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -loop-fusion < %s | FileCheck %s
+; RUN: opt -S -passes=loop-fusion < %s | FileCheck %s
 
 @B = common global [1024 x i32] zeroinitializer, align 16
 
index 44b2f18..57c17e3 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -loop-fusion -loop-fusion-peel-max-count=3 < %s | FileCheck %s
+; RUN: opt -S -passes=loop-fusion -loop-fusion-peel-max-count=3 < %s | FileCheck %s
 
 ; Tests if we are able to fuse two guarded loops which have constant but
 ; different trip counts. The first two iterations of the first loop should be
index c7b8996..fcd3292 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -loop-fusion -loop-fusion-peel-max-count=3 < %s | FileCheck %s
+; RUN: opt -S -passes=loop-fusion -loop-fusion-peel-max-count=3 < %s | FileCheck %s
 
 ; Tests that we do not fuse two guarded loops together.
 ; These loops do not have the same trip count, and the first loop meets the
index f04f36f..c9377ed 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -loop-simplify -loop-fusion -debug-only=loop-fusion < %s 2>&1 | FileCheck %s
+; RUN: opt -S -passes=loop-simplify,loop-fusion -debug-only=loop-fusion < %s 2>&1 | FileCheck %s
 ; REQUIRES: asserts
 ; CHECK: Safe to hoist.
 
index a530387..433090f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -loop-fusion < %s | FileCheck %s
+; RUN: opt -S -passes=loop-fusion < %s | FileCheck %s
 
 define void @hoist_preheader(i32 %N) {
 
index 5a99d6a..34c4f6e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -loop-simplify -loop-fusion -debug-only=loop-fusion < %s 2>&1 | FileCheck %s
+; RUN: opt -S -passes=loop-simplify,loop-fusion -debug-only=loop-fusion < %s 2>&1 | FileCheck %s
 ; REQUIRES: asserts
 ; CHECK: Safe to hoist.
 
index 2b14ec9..d23a92a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -loop-fusion < %s 2>&1 | FileCheck %s
+; RUN: opt -S -passes=loop-fusion < %s 2>&1 | FileCheck %s
 
 @A = common global [1024 x [1024 x i32]] zeroinitializer, align 16
 @B = common global [1024 x [1024 x i32]] zeroinitializer, align 16
index 44a0ac8..4dd19ef 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -loop-fusion < %s | FileCheck %s
+; RUN: opt -S -passes=loop-fusion < %s | FileCheck %s
 ;
 ;    int A[1024][1024];
 ;    int B[1024][1024];
index f53fc1a..ae83346 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -loop-simplify -loop-fusion -debug-only=loop-fusion < %s 2>&1 | FileCheck %s
+; RUN: opt -S -passes=loop-simplify,loop-fusion -debug-only=loop-fusion < %s 2>&1 | FileCheck %s
 ; REQUIRES: asserts
 ; CHECK: Could not hoist/sink all instructions
 
@@ -8,7 +8,7 @@ define void @sink_preheader(i32 %N) {
 pre1:
   br label %body1
 
-; CHECK:body1: 
+; CHECK:body1:
 ; CHECK-NOT:  %stay =
 body1:  ; preds = %pre1, %body1
   %i = phi i32 [%i_next, %body1], [0, %pre1]
index 6f7aa27..12f63af 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -loop-simplify -loop-fusion -debug-only=loop-fusion < %s 2>&1 | FileCheck %s
+; RUN: opt -S -passes=loop-simplify,loop-fusion -debug-only=loop-fusion < %s 2>&1 | FileCheck %s
 ; REQUIRES: asserts
 ; CHECK: Could not hoist/sink all instructions
 
@@ -10,7 +10,7 @@ pre1:
   %ptr = alloca i32
   br label %body1
 
-; CHECK:body1: 
+; CHECK:body1:
 ; CHECK-NOT: store atomic i32 3, i32* %ptr seq_cst, align 4
 body1:  ; preds = %pre1, %body1
   %i = phi i32 [%i_next, %body1], [0, %pre1]
index 7e8f77c..9dc0736 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -loop-fusion -debug-only=loop-fusion < %s 2>&1 | FileCheck %s
+; RUN: opt -S -passes=loop-fusion -debug-only=loop-fusion < %s 2>&1 | FileCheck %s
 ; REQUIRES: asserts
 
 ; CHECK: Could not hoist/sink all instructions
@@ -9,7 +9,7 @@ define void @sink_preheader(i32 %N) {
 pre1:
   br label %body1
 
-; CHECK:body1: 
+; CHECK:body1:
 ; CHECK-NOT: %no_hoist =
 ; CHECK-NOT: %no_hoist_sink =
 ; CHECK-NOT: %no_sink =
index 774fc44..2606d21 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -loop-simplify -loop-fusion -debug-only=loop-fusion < %s 2>&1 | FileCheck %s
+; RUN: opt -S -passes=loop-simplify,loop-fusion -debug-only=loop-fusion < %s 2>&1 | FileCheck %s
 ; REQUIRES: asserts
 ; CHECK: Could not hoist/sink all instructions
 
@@ -11,7 +11,7 @@ pre1:
   %ptr = alloca i32, align 4
   br label %body1
 
-; CHECK:body1: 
+; CHECK:body1:
 ; CHECK-NOT:  %stay =
 body1:  ; preds = %pre1, %body1
   %i = phi i32 [%i_next, %body1], [0, %pre1]
index abf5593..d1c269c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -loop-simplify -loop-fusion -debug-only=loop-fusion < %s 2>&1 | FileCheck %s
+; RUN: opt -S -passes=loop-simplify,loop-fusion -debug-only=loop-fusion < %s 2>&1 | FileCheck %s
 ; REQUIRES: asserts
 ; CHECK: Could not hoist/sink all instructions
 
@@ -11,7 +11,7 @@ pre1:
   %ptr = alloca i32, align 4
   br label %body1
 
-; CHECK:body1: 
+; CHECK:body1:
 ; CHECK-NOT:  store i32 3, i32* %ptr
 body1:  ; preds = %pre1, %body1
   %i = phi i32 [%i_next, %body1], [0, %pre1]
index 17f2a47..621119d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -loop-simplify -loop-fusion -debug-only=loop-fusion < %s 2>&1 | FileCheck %s
+; RUN: opt -S -passes=loop-simplify,loop-fusion -debug-only=loop-fusion < %s 2>&1 | FileCheck %s
 ; REQUIRES: asserts
 ; CHECK: Could not hoist/sink all instructions
 
@@ -10,7 +10,7 @@ define void @sink_preheader(i32 %N) {
 pre1:
   br label %body1
 
-; CHECK:body1: 
+; CHECK:body1:
 ; CHECK-NOT: call void @unknown_func()
 body1:  ; preds = %pre1, %body1
   %i = phi i32 [%i_next, %body1], [0, %pre1]
index 4981d45..f225d1a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -loop-simplify -loop-fusion -debug-only=loop-fusion < %s 2>&1 | FileCheck %s
+; RUN: opt -S -passes=loop-simplify,loop-fusion -debug-only=loop-fusion < %s 2>&1 | FileCheck %s
 ; REQUIRES: asserts
 ; CHECK: Could not hoist/sink all instructions
 
@@ -12,7 +12,7 @@ pre1:
   %ptr = alloca i32
   br label %body1
 
-; CHECK:body1: 
+; CHECK:body1:
 ; CHECK-NOT: store volatile i32 3, i32* %ptr
 body1:  ; preds = %pre1, %body1
   %i = phi i32 [%i_next, %body1], [0, %pre1]
index d5256c3..1167a45 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -loop-fusion -loop-fusion-peel-max-count=3 < %s | FileCheck %s
+; RUN: opt -S -passes=loop-fusion -loop-fusion-peel-max-count=3 < %s | FileCheck %s
 
 ; Tests that we do not fuse these two loops together. These loops do not have
 ; the same tripcount, and the first loop is valid candiate for peeling; however
index 6044df9..8109758 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -loop-fusion -loop-fusion-peel-max-count=3 < %s | FileCheck %s
+; RUN: opt -S -passes=loop-fusion -loop-fusion-peel-max-count=3 < %s | FileCheck %s
 
 ; Tests whether we can fuse two loops together if they have constant but a
 ; different tripcount.
index f45dbd8..fb8b99d 100644 (file)
@@ -1,6 +1,6 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -S -loop-fusion < %s | FileCheck %s
-; RUN: opt -S -loop-fusion -pass-remarks-output=%t < %s
+; RUN: opt -S -passes=loop-fusion < %s | FileCheck %s
+; RUN: opt -S -passes=loop-fusion -pass-remarks-output=%t < %s
 ; RUN: FileCheck --input-file=%t %s --check-prefix REMARKS
 ; REQUIRES: asserts
 
index 9d6b6d2..2493acb 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -S -loop-simplify -loop-fusion < %s | FileCheck %s
+; RUN: opt -S -passes=loop-simplify,loop-fusion < %s | FileCheck %s
 
 @B = common global [1024 x i32] zeroinitializer, align 16
 
@@ -487,7 +487,7 @@ for.second.exit:
 }
 
 ; Test that `%add` cannot be moved to basic block entry, as it uses %i, which
-; defined after basic block entry. It also cannot be moved to for.second.exit 
+; defined after basic block entry. It also cannot be moved to for.second.exit
 ; since it is used in for.second. Check also that the two loops for.first and
 ; for.second are not fused.
 
index 6cabedb..3119610 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -S -loop-simplify -loop-fusion -debug-only=loop-fusion < %s 2>&1 | FileCheck %s
+; RUN: opt -S -passes=loop-simplify,loop-fusion -debug-only=loop-fusion < %s 2>&1 | FileCheck %s
 ; REQUIRES: asserts
 ; CHECK: Safe to sink.
 
index 055dfa1..7e4559c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -loop-fusion < %s | FileCheck %s
+; RUN: opt -S -passes=loop-fusion < %s | FileCheck %s
 
 define void @sink_preheader(i32 %N) {
 ; CHECK-LABEL: @sink_preheader(
index bcd3e6d..9afb163 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -loop-simplify -loop-fusion -debug-only=loop-fusion < %s 2>&1 | FileCheck %s
+; RUN: opt -S -passes=loop-simplify,loop-fusion -debug-only=loop-fusion < %s 2>&1 | FileCheck %s
 ; REQUIRES: asserts
 
 @A = common global [100 x i32] zeroinitializer, align 16
index 065b250..d86dd21 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -loop-fusion < %s 2>&1 | FileCheck %s
+; RUN: opt -S -passes=loop-fusion < %s 2>&1 | FileCheck %s
 
 ; Verify that LoopFusion can fuse two triple-loop nests with guarded inner
 ; loops. Loops are in canonical form.