From dd81e2fcd071efc6ed2f9fcb560f6bc2ccf03bfc Mon Sep 17 00:00:00 2001 From: Roman Lebedev Date: Thu, 8 Dec 2022 02:27:28 +0300 Subject: [PATCH] [NFC] Port all LoopRotate tests to `-passes=` syntax --- llvm/test/Transforms/LoopRotate/call-prepare-for-lto.ll | 4 ++-- llvm/test/Transforms/LoopRotate/multiple-exits.ll | 2 +- llvm/test/Transforms/LoopRotate/nosimplifylatch.ll | 4 ++-- llvm/test/Transforms/LoopRotate/pr2639.ll | 2 +- llvm/test/Transforms/LoopRotate/pr33701.ll | 2 +- llvm/test/Transforms/LoopRotate/pr37205.ll | 4 ++-- llvm/test/Transforms/LoopRotate/preserve-loop-simplify.ll | 2 +- llvm/test/Transforms/LoopRotate/preserve-scev.ll | 2 +- llvm/test/Transforms/LoopRotate/simplifylatch.ll | 2 +- llvm/test/Transforms/LoopRotate/switch.ll | 2 +- 10 files changed, 13 insertions(+), 13 deletions(-) diff --git a/llvm/test/Transforms/LoopRotate/call-prepare-for-lto.ll b/llvm/test/Transforms/LoopRotate/call-prepare-for-lto.ll index 4a84b76..c62ed0b 100644 --- a/llvm/test/Transforms/LoopRotate/call-prepare-for-lto.ll +++ b/llvm/test/Transforms/LoopRotate/call-prepare-for-lto.ll @@ -1,5 +1,5 @@ -; RUN: opt -S -loop-rotate < %s | FileCheck --check-prefix=FULL %s -; RUN: opt -S -loop-rotate -rotation-prepare-for-lto < %s | FileCheck --check-prefix=PREPARE %s +; RUN: opt -S -passes=loop-rotate < %s | FileCheck --check-prefix=FULL %s +; RUN: opt -S -passes=loop-rotate -rotation-prepare-for-lto < %s | FileCheck --check-prefix=PREPARE %s ; RUN: opt -S -passes='require,require,loop(loop-rotate)' < %s | FileCheck --check-prefix=FULL %s ; RUN: opt -S -passes='require,require,loop(loop-rotate)' -rotation-prepare-for-lto < %s | FileCheck --check-prefix=PREPARE %s diff --git a/llvm/test/Transforms/LoopRotate/multiple-exits.ll b/llvm/test/Transforms/LoopRotate/multiple-exits.ll index 1a1ab3f..a874d12 100644 --- a/llvm/test/Transforms/LoopRotate/multiple-exits.ll +++ b/llvm/test/Transforms/LoopRotate/multiple-exits.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -loop-rotate < %s -verify-loop-info -verify-dom-info -verify-memoryssa | FileCheck %s +; RUN: opt -S -passes=loop-rotate < %s -verify-loop-info -verify-dom-info -verify-memoryssa | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" target triple = "x86_64-apple-macosx10.8.0" diff --git a/llvm/test/Transforms/LoopRotate/nosimplifylatch.ll b/llvm/test/Transforms/LoopRotate/nosimplifylatch.ll index 07ff664..d4d2112 100644 --- a/llvm/test/Transforms/LoopRotate/nosimplifylatch.ll +++ b/llvm/test/Transforms/LoopRotate/nosimplifylatch.ll @@ -1,9 +1,9 @@ -; RUN: opt -S < %s -loop-rotate -licm -verify-dom-info -verify-loop-info | FileCheck %s +; RUN: opt -S < %s -passes='loop-mssa(loop-rotate,licm)' -verify-dom-info -verify-loop-info | FileCheck %s target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128" target triple = "arm64-apple-ios8.0.0" ;CHECK: for.inc: -;CHECK-NEXT: %incdec.ptr.i = getelementptr +;CHECK-NEXT: %incdec.ptr.i = getelementptr ; Function Attrs: alwaysinline inlinehint nounwind readonly ssp define linkonce_odr hidden i64 @_ZNSt3__14findINS_11__wrap_iterIPiEEiEET_S4_S4_RKT0_(i64 %__first.coerce, i64 %__last.coerce, i32* nocapture readonly dereferenceable(4) %__value_) { diff --git a/llvm/test/Transforms/LoopRotate/pr2639.ll b/llvm/test/Transforms/LoopRotate/pr2639.ll index da9a3a2..f33174c 100644 --- a/llvm/test/Transforms/LoopRotate/pr2639.ll +++ b/llvm/test/Transforms/LoopRotate/pr2639.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -loop-deletion -loop-rotate -verify-dom-info -verify-loop-info -disable-output +; RUN: opt < %s -passes=loop-deletion,loop-rotate -verify-dom-info -verify-loop-info -disable-output ; PR 2639 %struct.HexxagonMove = type { i8, i8, i32 } diff --git a/llvm/test/Transforms/LoopRotate/pr33701.ll b/llvm/test/Transforms/LoopRotate/pr33701.ll index 91ee2e8..6f30c6f 100644 --- a/llvm/test/Transforms/LoopRotate/pr33701.ll +++ b/llvm/test/Transforms/LoopRotate/pr33701.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -loop-rotate -verify-dom-info -verify-loop-info -verify-memoryssa -disable-output +; RUN: opt < %s -passes=loop-rotate -verify-dom-info -verify-loop-info -verify-memoryssa -disable-output define void @func() { bb0: diff --git a/llvm/test/Transforms/LoopRotate/pr37205.ll b/llvm/test/Transforms/LoopRotate/pr37205.ll index 161016a..06977be 100644 --- a/llvm/test/Transforms/LoopRotate/pr37205.ll +++ b/llvm/test/Transforms/LoopRotate/pr37205.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S -indvars -verify -loop-rotate -loop-idiom < %s | FileCheck %s -; RUN: opt -S -indvars -verify -loop-rotate -loop-idiom -verify-memoryssa < %s | FileCheck %s +; RUN: opt -S -passes='loop(indvars),verify,loop(loop-rotate,loop-idiom)' < %s | FileCheck %s +; RUN: opt -S -passes='loop(indvars),verify,loop(loop-rotate,loop-idiom)' -verify-memoryssa < %s | FileCheck %s target triple = "x86_64-unknown-linux-gnu" ; Verify that we invalidate SCEV properly. diff --git a/llvm/test/Transforms/LoopRotate/preserve-loop-simplify.ll b/llvm/test/Transforms/LoopRotate/preserve-loop-simplify.ll index 53fa02a..945c6ba 100644 --- a/llvm/test/Transforms/LoopRotate/preserve-loop-simplify.ll +++ b/llvm/test/Transforms/LoopRotate/preserve-loop-simplify.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -loop-rotate < %s -verify-loop-info | FileCheck %s +; RUN: opt -S -passes=loop-rotate < %s -verify-loop-info | FileCheck %s ; ; Verify that LoopRotate preserves LoopSimplify form even in very peculiar loop ; structures. We manually validate the CFG with FileCheck because currently we diff --git a/llvm/test/Transforms/LoopRotate/preserve-scev.ll b/llvm/test/Transforms/LoopRotate/preserve-scev.ll index c35572a..83ac9da 100644 --- a/llvm/test/Transforms/LoopRotate/preserve-scev.ll +++ b/llvm/test/Transforms/LoopRotate/preserve-scev.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -loop-rotate -loop-reduce -verify-memoryssa -verify-dom-info -verify-loop-info -disable-output +; RUN: opt < %s -passes=loop-rotate,loop-reduce -verify-memoryssa -verify-dom-info -verify-loop-info -disable-output define fastcc void @foo(i32* %A, i64 %i) nounwind { BB: diff --git a/llvm/test/Transforms/LoopRotate/simplifylatch.ll b/llvm/test/Transforms/LoopRotate/simplifylatch.ll index 215622f..dc149bd 100644 --- a/llvm/test/Transforms/LoopRotate/simplifylatch.ll +++ b/llvm/test/Transforms/LoopRotate/simplifylatch.ll @@ -1,4 +1,4 @@ -; RUN: opt -S < %s -loop-rotate -licm -verify-dom-info -verify-loop-info | FileCheck %s +; RUN: opt -S < %s -passes='loop-mssa(loop-rotate,licm)' -verify-dom-info -verify-loop-info | FileCheck %s ; PR2624 unroll multiple exits @mode_table = global [4 x i32] zeroinitializer ; <[4 x i32]*> [#uses=1] diff --git a/llvm/test/Transforms/LoopRotate/switch.ll b/llvm/test/Transforms/LoopRotate/switch.ll index 08d64ea..4223718 100644 --- a/llvm/test/Transforms/LoopRotate/switch.ll +++ b/llvm/test/Transforms/LoopRotate/switch.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S -loop-rotate < %s | FileCheck %s +; RUN: opt -S -passes=loop-rotate < %s | FileCheck %s define i64 @switch_multi_entry_known_entry() { ; CHECK-LABEL: @switch_multi_entry_known_entry( -- 2.7.4