Skip to content

Commit b1a9584

Browse files
committed
[opt] Disincentivize new tests from using old pass syntax
Over the past day or so, i've took a large swing at our tests, and reduced the number of tests that were still using the old syntax from ~1800 to just 200. Left to handle: (as it is seen in this patch) * Transforms/LSR * Transforms/CGP * Transforms/TypePromotion * Transforms/HardwareLoops * Analysis/* * some misc. I think this is the right point to start actively refusing to honor the old syntax, except for the old tests, to prevent the old syntax from creeping back in. Thus, let's add temporary default-off flag, and if it is not passed refuse to accept old syntax. The tests that still need porting are annotated with this flag. Reviewed By: aeubanks Differential Revision: https://reviews.llvm.org/D139647
1 parent c2a289d commit b1a9584

File tree

205 files changed

+351
-343
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

205 files changed

+351
-343
lines changed

clang/test/CodeGen/arm-neon-vcadd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// REQUIRES: arm-registered-target
22
// RUN: %clang_cc1 -triple armv8.3a-arm-none-eabi -target-cpu generic \
33
// RUN: -target-feature +fullfp16 -mfloat-abi soft -S -emit-llvm -o - %s | \
4-
// RUN: opt -S -sroa -o - | FileCheck %s
4+
// RUN: opt -S -passes=sroa -o - | FileCheck %s
55

66
#include <arm_neon.h>
77

clang/test/CodeGen/memcmp-inline-builtin-to-asm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
22

3-
// RUN: %clang_cc1 -triple x86_64 -S -emit-llvm -o - %s | opt -S -verify | FileCheck %s
3+
// RUN: %clang_cc1 -triple x86_64 -S -emit-llvm -o - %s | opt -S -passes=verify | FileCheck %s
44
//
55
// Verifies that clang detects memcmp inline version and uses it instead of the builtin.
66

clang/test/CodeGenCXX/attr-musttail.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %clang_cc1 -no-opaque-pointers -fno-elide-constructors -S -emit-llvm %s -triple x86_64-unknown-linux-gnu -o - | FileCheck %s
2-
// RUN: %clang_cc1 -no-opaque-pointers -fno-elide-constructors -S -emit-llvm %s -triple x86_64-unknown-linux-gnu -o - | opt -verify
2+
// RUN: %clang_cc1 -no-opaque-pointers -fno-elide-constructors -S -emit-llvm %s -triple x86_64-unknown-linux-gnu -o - | opt -passes=verify
33
// FIXME: remove the call to "opt" once the tests are running the Clang verifier automatically again.
44

55
int Bar(int);

llvm/test/Analysis/AliasSet/unknown-inst-tracking.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -S -licm -simple-loop-unswitch < %s | FileCheck %s
1+
; RUN: opt -temporarily-allow-old-pass-syntax -S -licm -simple-loop-unswitch < %s | FileCheck %s
22

33
; This test checks for a crash. See PR32587.
44

llvm/test/Analysis/CallGraph/2008-09-09-DirectCall.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -print-callgraph -disable-output 2>&1 | FileCheck %s
1+
; RUN: opt -temporarily-allow-old-pass-syntax < %s -print-callgraph -disable-output 2>&1 | FileCheck %s
22

33
; CHECK: Call graph node <<null function>>
44
; CHECK: CS<{{.*}}> calls function 'callee'

llvm/test/Analysis/CallGraph/2008-09-09-UsedByGlobal.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -print-callgraph -disable-output 2>&1 | FileCheck %s
1+
; RUN: opt -temporarily-allow-old-pass-syntax < %s -print-callgraph -disable-output 2>&1 | FileCheck %s
22

33
@a = global ptr @f ; <ptr> [#uses=0]
44

llvm/test/Analysis/CallGraph/callback-calls.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
; RUN: opt < %s -print-callgraph -disable-output 2>&1 | FileCheck %s
2-
; RUN: opt < %s -passes=print-callgraph -disable-output 2>&1 | FileCheck %s
1+
; RUN: opt -temporarily-allow-old-pass-syntax < %s -print-callgraph -disable-output 2>&1 | FileCheck %s
2+
; RUN: opt -temporarily-allow-old-pass-syntax < %s -passes=print-callgraph -disable-output 2>&1 | FileCheck %s
33

44
; CHECK: Call graph node for function: 'caller'
55
; CHECK-NEXT: CS<{{.*}}> calls function 'broker'

llvm/test/Analysis/CallGraph/ignore-assumelike-calls.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -print-callgraph -disable-output 2>&1 | FileCheck %s
1+
; RUN: opt -temporarily-allow-old-pass-syntax < %s -print-callgraph -disable-output 2>&1 | FileCheck %s
22
; CHECK: Call graph node <<null function>><<{{.*}}>> #uses=0
33
; CHECK-NEXT: CS<None> calls function 'other_intrinsic_use'
44
; CHECK-NEXT: CS<None> calls function 'other_cast_intrinsic_use'

llvm/test/Analysis/CallGraph/ignore-callback-uses.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -print-callgraph -disable-output 2>&1 | FileCheck %s
1+
; RUN: opt -temporarily-allow-old-pass-syntax < %s -print-callgraph -disable-output 2>&1 | FileCheck %s
22
; CHECK: Call graph node <<null function>><<{{.*}}>> #uses=0
33
; CHECK-NEXT: CS<{{.*}}> calls function 'f'
44
; CHECK-NEXT: CS<{{.*}}> calls function '__kmpc_fork_call'

llvm/test/Analysis/CallGraph/llvm-used.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -print-callgraph -disable-output 2>&1 | FileCheck %s
1+
; RUN: opt -temporarily-allow-old-pass-syntax < %s -print-callgraph -disable-output 2>&1 | FileCheck %s
22

33
; The test will report used1 and used2 functions as used on the grounds
44
; of llvm.*.used references. Passing IgnoreLLVMUsed = true into the

llvm/test/Analysis/CallGraph/no-intrinsics.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
; RUN: opt < %s -print-callgraph -disable-output 2>&1 | FileCheck %s
2-
; RUN: opt < %s -passes=print-callgraph -disable-output 2>&1 | FileCheck %s
1+
; RUN: opt -temporarily-allow-old-pass-syntax < %s -print-callgraph -disable-output 2>&1 | FileCheck %s
2+
; RUN: opt -temporarily-allow-old-pass-syntax < %s -passes=print-callgraph -disable-output 2>&1 | FileCheck %s
33

44
; Check that intrinsics aren't added to the call graph
55

llvm/test/Analysis/CallGraph/non-leaf-intrinsics.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -S -print-callgraph -disable-output < %s 2>&1 | FileCheck %s
1+
; RUN: opt -temporarily-allow-old-pass-syntax -S -print-callgraph -disable-output < %s 2>&1 | FileCheck %s
22

33
declare void @llvm.experimental.patchpoint.void(i64, i32, ptr, i32, ...)
44
declare token @llvm.experimental.gc.statepoint.p0(i64, i32, ptr, i32, i32, ...)

llvm/test/Analysis/Dominators/2007-07-11-SplitBlock.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -loop-rotate -simple-loop-unswitch -disable-output
1+
; RUN: opt -temporarily-allow-old-pass-syntax < %s -loop-rotate -simple-loop-unswitch -disable-output
22

33
define i32 @stringSearch_Clib(i32 %count) {
44
entry:

llvm/test/Analysis/Dominators/2007-07-12-SplitBlock.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -loop-rotate -licm -simple-loop-unswitch -disable-output
1+
; RUN: opt -temporarily-allow-old-pass-syntax < %s -loop-rotate -licm -simple-loop-unswitch -disable-output
22

33
define i32 @main(i32 %argc, i8** %argv) {
44
entry:

llvm/test/Analysis/Dominators/invoke.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -verify -disable-output < %s
1+
; RUN: opt -temporarily-allow-old-pass-syntax -verify -disable-output < %s
22
; This tests that we handle unreachable blocks correctly
33

44
define void @f() personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) {

llvm/test/Analysis/GlobalsModRef/pr12351.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -aa-pipeline=basic-aa,globals-aa -gvn -S -disable-verify | FileCheck %s
1+
; RUN: opt -temporarily-allow-old-pass-syntax < %s -aa-pipeline=basic-aa,globals-aa -gvn -S -disable-verify | FileCheck %s
22

33
declare void @llvm.memcpy.p0i8.p0i8.i32(i8*, i8*, i32, i1)
44
define void @foo(i8* %x, i8* %y) {

llvm/test/Analysis/LazyValueAnalysis/lvi-after-jumpthreading.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
; RUN: opt < %s -jump-threading -print-lvi-after-jump-threading -disable-output 2>&1 | FileCheck %s
2-
; RUN: opt < %s -passes=jump-threading -print-lvi-after-jump-threading -disable-output 2>&1 | FileCheck %s
1+
; RUN: opt -temporarily-allow-old-pass-syntax < %s -jump-threading -print-lvi-after-jump-threading -disable-output 2>&1 | FileCheck %s
2+
; RUN: opt -temporarily-allow-old-pass-syntax < %s -passes=jump-threading -print-lvi-after-jump-threading -disable-output 2>&1 | FileCheck %s
33

44
; Testing LVI cache after jump-threading
55

llvm/test/Analysis/LazyValueAnalysis/lvi-for-ashr.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -correlated-propagation -S %s | FileCheck %s
1+
; RUN: opt -temporarily-allow-old-pass-syntax -correlated-propagation -S %s | FileCheck %s
22
; CHECK-LABEL: @test-ashr
33
; CHECK: bb_then
44
; CHECK: %. = select i1 true, i32 3, i32 2

llvm/test/Analysis/LoopAccessAnalysis/interleave-innermost.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -loop-vectorize -force-vector-interleave=1 -S < %s | FileCheck %s
1+
; RUN: opt -temporarily-allow-old-pass-syntax -loop-vectorize -force-vector-interleave=1 -S < %s | FileCheck %s
22
; CHECK-LABEL: TestFoo
33
; CHECK-NOT: %wide.vec
44

llvm/test/Analysis/LoopAccessAnalysis/memcheck-ni.ll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -loop-versioning -S < %s | FileCheck %s
1+
; RUN: opt -temporarily-allow-old-pass-syntax -loop-versioning -S < %s | FileCheck %s
22

33
; NB: addrspaces 10-13 are non-integral
44
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128-ni:10:11:12:13"
@@ -10,7 +10,7 @@ define void @"japi1_permutedims!_33509"(%jl_value_t addrspace(10)**) {
1010
; CHECK: [[CMP:%[^ ]*]] = icmp ult double addrspace(13)* [[A:%[^ ]*]], [[B:%[^ ]*]]
1111
; CHECK: [[SELECT:%[^ ]*]] = select i1 %18, double addrspace(13)* [[A]], double addrspace(13)* [[B]]
1212
top:
13-
%1 = alloca [3 x i64], align 8
13+
%1 = alloca [3 x i64], align 8
1414
%2 = load %jl_value_t addrspace(10)*, %jl_value_t addrspace(10)** %0, align 8
1515
%3 = getelementptr inbounds %jl_value_t addrspace(10)*, %jl_value_t addrspace(10)** %0, i64 1
1616
%4 = load %jl_value_t addrspace(10)*, %jl_value_t addrspace(10)** %3, align 8
@@ -46,5 +46,5 @@ L74:
4646
br i1 %24, label %L94, label %L74
4747

4848
L94:
49-
ret void
49+
ret void
5050
}

llvm/test/Analysis/LoopAccessAnalysis/scalable-vector-regression-tests.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
; RUN: opt -loop-load-elim -mtriple=aarch64 -mattr=+sve -S -debug < %s 2>&1 | FileCheck %s
1+
; RUN: opt -temporarily-allow-old-pass-syntax -loop-load-elim -mtriple=aarch64 -mattr=+sve -S -debug < %s 2>&1 | FileCheck %s
22
; REQUIRES: asserts
33

44
; Regression tests verifying "assumption that TypeSize is not scalable" and
55
; "Invalid size request on a scalable vector." are not produced by
6-
; -load-loop-elim (this would cause the test to fail because opt would exit with
6+
; -load-loop-elim (this would cause the test to fail because opt -temporarily-allow-old-pass-syntax would exit with
77
; a non-zero exit status).
88

99
; No output checked for this one, but causes a fatal error if the regression is present.

llvm/test/Analysis/MemorySSA/debugvalue.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -disable-basic-aa -loop-rotate -verify-memoryssa -S %s | FileCheck %s
1+
; RUN: opt -temporarily-allow-old-pass-syntax -disable-basic-aa -loop-rotate -verify-memoryssa -S %s | FileCheck %s
22
; REQUIRES: asserts
33

44
; CHECK-LABEL: @f_w4_i2

llvm/test/Analysis/MemorySSA/loop-rotate-inv-template.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -disable-output -loop-rotate -verify-memoryssa %s
1+
; RUN: opt -temporarily-allow-old-pass-syntax -disable-output -loop-rotate -verify-memoryssa %s
22
; REQUIRES: asserts
33

44
; Function Attrs: nounwind

llvm/test/Analysis/MemorySSA/loop-rotate-simplified-clone.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -verify-memoryssa -loop-rotate %s -S | FileCheck %s
1+
; RUN: opt -temporarily-allow-old-pass-syntax -verify-memoryssa -loop-rotate %s -S | FileCheck %s
22
; REQUIRES: asserts
33

44
; CHECK-LABEL: @test()

llvm/test/Analysis/MemorySSA/loop-rotate-valuemap.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -loop-rotate %s -S | FileCheck %s
1+
; RUN: opt -temporarily-allow-old-pass-syntax -loop-rotate %s -S | FileCheck %s
22
; REQUIRES: asserts
33

44
; Check that loop rotate keeps proper mapping between cloned instructions,

llvm/test/Analysis/MemorySSA/loop-unswitch.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -S -simple-loop-unswitch -disable-basic-aa -verify-memoryssa < %s | FileCheck %s
1+
; RUN: opt -temporarily-allow-old-pass-syntax -S -simple-loop-unswitch -disable-basic-aa -verify-memoryssa < %s | FileCheck %s
22
; REQUIRES: asserts
33

44
target triple = "x86_64-unknown-linux-gnu"

llvm/test/Analysis/MemorySSA/nondeterminism.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -simplifycfg -S --preserve-ll-uselistorder %s | FileCheck %s
1+
; RUN: opt -temporarily-allow-old-pass-syntax -simplifycfg -S --preserve-ll-uselistorder %s | FileCheck %s
22
; REQUIRES: x86-registered-target
33
; CHECK-LABEL: @n
44
; CHECK: uselistorder i16 0, { 3, 2, 4, 1, 5, 0, 6 }

llvm/test/Analysis/MemorySSA/pr40037.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; REQUIRES: asserts
2-
; RUN: opt -S -simple-loop-unswitch -verify-memoryssa < %s | FileCheck %s
2+
; RUN: opt -temporarily-allow-old-pass-syntax -S -simple-loop-unswitch -verify-memoryssa < %s | FileCheck %s
33

44
target datalayout = "E-m:e-i1:8:16-i8:8:16-i64:64-f128:64-v128:64-a:8:16-n32:64"
55
target triple = "s390x-ibm-linux"

llvm/test/Analysis/MemorySSA/pr40749_2.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -S -licm -simple-loop-unswitch -verify-memoryssa %s | FileCheck %s
1+
; RUN: opt -temporarily-allow-old-pass-syntax -S -licm -simple-loop-unswitch -verify-memoryssa %s | FileCheck %s
22
; REQUIRES: asserts
33
target datalayout = "E-m:e-i1:8:16-i8:8:16-i64:64-f128:64-v128:64-a:8:16-n32:64"
44
target triple = "s390x-ibm-linux"

llvm/test/Analysis/MemorySSA/pr42294.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; REQUIRES: asserts
2-
; RUN: opt -loop-rotate -licm %s -disable-output -debug-only=licm 2>&1 | FileCheck %s -check-prefix=LICM
3-
; RUN: opt -loop-rotate -licm %s -S | FileCheck %s
2+
; RUN: opt -temporarily-allow-old-pass-syntax -loop-rotate -licm %s -disable-output -debug-only=licm 2>&1 | FileCheck %s -check-prefix=LICM
3+
; RUN: opt -temporarily-allow-old-pass-syntax -loop-rotate -licm %s -S | FileCheck %s
44

55
; LICM-NOT: LICM sinking instruction: %.pre = load i8, ptr %arrayidx.phi.trans.insert
66

llvm/test/Analysis/MemorySSA/pr43044.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -loop-rotate -licm -verify-memoryssa %s -S | FileCheck %s
1+
; RUN: opt -temporarily-allow-old-pass-syntax -loop-rotate -licm -verify-memoryssa %s -S | FileCheck %s
22
; REQUIRES: asserts
33

44
target datalayout = "E-m:e-i1:8:16-i8:8:16-i64:64-f128:64-v128:64-a:8:16-n32:64"

llvm/test/Analysis/MemorySSA/pr43641.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -simple-loop-unswitch -enable-nontrivial-unswitch -verify-memoryssa -S < %s | FileCheck %s
1+
; RUN: opt -temporarily-allow-old-pass-syntax -simple-loop-unswitch -enable-nontrivial-unswitch -verify-memoryssa -S < %s | FileCheck %s
22
; REQUIRES: asserts
33

44
; CHECK-LABEL: @c

llvm/test/Analysis/MemorySSA/pr44029.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -loop-simplifycfg -verify-memoryssa -S < %s | FileCheck %s
1+
; RUN: opt -temporarily-allow-old-pass-syntax -loop-simplifycfg -verify-memoryssa -S < %s | FileCheck %s
22
; REQUIRES: asserts
33

44
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"

llvm/test/Analysis/MemorySSA/pr46574.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -loop-instsimplify -loop-simplifycfg -licm -simple-loop-unswitch -enable-nontrivial-unswitch %s -disable-output
1+
; RUN: opt -temporarily-allow-old-pass-syntax -loop-instsimplify -loop-simplifycfg -licm -simple-loop-unswitch -enable-nontrivial-unswitch %s -disable-output
22
; REQUIRES: asserts
33

44
%0 = type { i24, i32, i32, i8 }

llvm/test/Analysis/MemorySSA/simple_loop_unswitch_nontrivial.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -simple-loop-unswitch -enable-nontrivial-unswitch -verify-memoryssa -S %s | FileCheck %s
1+
; RUN: opt -temporarily-allow-old-pass-syntax -simple-loop-unswitch -enable-nontrivial-unswitch -verify-memoryssa -S %s | FileCheck %s
22
; REQUIRES: asserts
33

44
target triple = "x86_64-unknown-linux-gnu"

llvm/test/Analysis/MustExecute/const-cond.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2-
; RUN: opt -disable-output -print-mustexecute %s 2>&1 | FileCheck %s
3-
; RUN: opt -disable-output -passes=print-mustexecute %s 2>&1 | FileCheck %s
2+
; RUN: opt -temporarily-allow-old-pass-syntax -disable-output -print-mustexecute %s 2>&1 | FileCheck %s
3+
; RUN: opt -temporarily-allow-old-pass-syntax -disable-output -passes=print-mustexecute %s 2>&1 | FileCheck %s
44

55
; In general the CFG below is easily simplified but this is useful for
66
; pass ordering issue elimination.

llvm/test/Analysis/MustExecute/infinite_loops.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2-
; RUN: opt -disable-output -print-mustexecute %s 2>&1 | FileCheck %s
2+
; RUN: opt -temporarily-allow-old-pass-syntax -disable-output -print-mustexecute %s 2>&1 | FileCheck %s
33

44
; Infinite loop.
55
; Make sure that the backedge is mustexec.

llvm/test/Analysis/MustExecute/loop-header.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2-
; RUN: opt -disable-output -print-mustexecute %s 2>&1 | FileCheck %s
2+
; RUN: opt -temporarily-allow-old-pass-syntax -disable-output -print-mustexecute %s 2>&1 | FileCheck %s
33

44
define i1 @header_with_icf(ptr noalias %p, i32 %high) {
55
; CHECK-LABEL: @header_with_icf(
@@ -67,7 +67,7 @@ entry:
6767
loop:
6868
%iv = phi i32 [0, %entry], [%iv.next, %next]
6969
br label %inner_loop
70-
70+
7171
inner_loop:
7272
%v = load i32, ptr %p
7373
%inner.test = icmp eq i32 %v, 0

llvm/test/Analysis/MustExecute/pr57780.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -disable-output -print-mustexecute < %s 2>&1 | FileCheck %s
1+
; RUN: opt -temporarily-allow-old-pass-syntax -disable-output -print-mustexecute < %s 2>&1 | FileCheck %s
22

33
@c = global i16 0, align 2
44

llvm/test/Analysis/ScalarEvolution/2007-08-06-MisinterpretBranch.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2-
; RUN: opt < %s -indvars -adce -simplifycfg -S | FileCheck %s
2+
; RUN: opt -temporarily-allow-old-pass-syntax < %s -indvars -adce -simplifycfg -S | FileCheck %s
33
; PR1598
44

55
define i32 @f(i32 %a, i32 %b, i32 %x, i32 %y) {

llvm/test/Analysis/ScalarEvolution/2012-03-26-LoadConstant.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -globalopt -instcombine -loop-rotate -licm -instcombine -indvars -loop-deletion -constmerge -S | FileCheck %s
1+
; RUN: opt -temporarily-allow-old-pass-syntax < %s -globalopt -temporarily-allow-old-pass-syntax -instcombine -loop-rotate -licm -instcombine -indvars -loop-deletion -constmerge -S | FileCheck %s
22
; PR11882: ComputeLoadConstantCompareExitLimit crash.
33
;
44
; for.body is deleted leaving a loop-invariant load.

llvm/test/Analysis/ScalarEvolution/2012-05-29-MulAddRec.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -S -indvars -loop-unroll | FileCheck %s
1+
; RUN: opt -temporarily-allow-old-pass-syntax < %s -S -indvars -loop-unroll | FileCheck %s
22
;
33
; loop-unroll fully unrolls the inner loop, creating an interesting
44
; chain of multiplication. indvars forces SCEV to run again on the

llvm/test/Analysis/ScalarEvolution/avoid-assume-hang.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
; RUN: opt %s -always-inline | opt -passes='print<scalar-evolution>'
2-
; There was optimization bug in ScalarEvolution, that causes too long
1+
; RUN: opt -temporarily-allow-old-pass-syntax %s -always-inline | opt -temporarily-allow-old-pass-syntax -passes='print<scalar-evolution>'
2+
; There was optimization bug in ScalarEvolution, that causes too long
33
; compute time and stack overflow crash.
44

55
declare void @body(i32)

llvm/test/Analysis/ScalarEvolution/scev-expander-existing-value-offset.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -loop-vectorize -force-vector-interleave=1 -force-vector-width=4 -S |FileCheck %s
1+
; RUN: opt -temporarily-allow-old-pass-syntax < %s -loop-vectorize -force-vector-interleave=1 -force-vector-width=4 -S |FileCheck %s
22
; SCEV expansion uses existing value or value + offset to reduce duplicate code expansion so foo should only generate one select inst after loop vectorization.
33
; CHECK-LABEL: @foo(
44
; CHECK: select

llvm/test/Analysis/ScalarEvolution/scev-expander-reuse-unroll.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -loop-unroll -unroll-runtime -unroll-count=2 -verify-scev-maps -S | FileCheck %s
1+
; RUN: opt -temporarily-allow-old-pass-syntax < %s -loop-unroll -unroll-runtime -unroll-count=2 -verify-scev-maps -S | FileCheck %s
22

33
; Check SCEV expansion uses existing value when unrolling an inner loop with runtime trip count in a loop nest.
44
; The outer loop gets unrolled twice, so we see 2 selects in the outer loop blocks.

llvm/test/Analysis/ScalarEvolution/scev-expander-reuse-vect.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -loop-vectorize -force-vector-width=4 -verify-scev-maps -S |FileCheck %s
1+
; RUN: opt -temporarily-allow-old-pass-syntax < %s -loop-vectorize -force-vector-width=4 -verify-scev-maps -S |FileCheck %s
22

33
; SCEV expansion uses existing value when the SCEV has no AddRec expr.
44
; CHECK-LABEL: @foo(

llvm/test/Analysis/ScalarEvolution/scev-invalid.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -S -indvars -loop-unroll | FileCheck %s
1+
; RUN: opt -temporarily-allow-old-pass-syntax < %s -S -indvars -loop-unroll | FileCheck %s
22
;
33
; PR15570: SEGV: SCEV back-edge info invalid after dead code removal.
44
;

llvm/test/Bitcode/compatibility-6.0.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
; N.b: This is 6.0-compatible IR. The CHECK lines occasionally differ from
44
; the IR used to generate the bitcode, and may need to be updated.
55

6-
; RUN: opt -verify -disable-output < %s.bc
6+
; RUN: opt -temporarily-allow-old-pass-syntax -verify -disable-output < %s.bc
77
; RUN: llvm-dis < %s.bc | FileCheck %s
88

99
target datalayout = "E"

llvm/test/Bitcode/extractelement.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -instsimplify | llvm-dis -disable-output
1+
; RUN: opt -temporarily-allow-old-pass-syntax < %s -instsimplify | llvm-dis -disable-output
22
; RUN: verify-uselistorder < %s
33
; PR3465
44

llvm/test/Bitcode/infer_dso_local.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
; RUN: opt -verify %S/Inputs/infer_dso_local.bc | llvm-dis | FileCheck %s
1+
; RUN: opt -temporarily-allow-old-pass-syntax -verify %S/Inputs/infer_dso_local.bc | llvm-dis | FileCheck %s
22

33
; CHECK: define linkonce_odr hidden void @test()

llvm/test/CodeGen/AArch64/llvm-masked-gather-legal-for-sve.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -mtriple=aarch64-linux-gnu -mattr=+sve -scalarize-masked-mem-intrin -S < %s | FileCheck %s
1+
; RUN: opt -temporarily-allow-old-pass-syntax -mtriple=aarch64-linux-gnu -mattr=+sve -scalarize-masked-mem-intrin -S < %s | FileCheck %s
22

33
; Testing that masked gathers operating on scalable vectors that are
44
; packed in SVE registers are not scalarized.

llvm/test/CodeGen/AArch64/llvm-masked-scatter-legal-for-sve.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -mtriple=aarch64-linux-gnu -mattr=+sve -scalarize-masked-mem-intrin -S < %s | FileCheck %s
1+
; RUN: opt -temporarily-allow-old-pass-syntax -mtriple=aarch64-linux-gnu -mattr=+sve -scalarize-masked-mem-intrin -S < %s | FileCheck %s
22

33
; Testing that masked scatters operating on scalable vectors that are
44
; packed in SVE registers are not scalarized.

llvm/test/CodeGen/AArch64/sve-ptest-removal-cmple.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: opt -instcombine -S %s | llc -mtriple=aarch64--linux-gnu -mattr=+sve -o - | FileCheck %s
2+
; RUN: opt -temporarily-allow-old-pass-syntax -instcombine -S %s | llc -mtriple=aarch64--linux-gnu -mattr=+sve -o - | FileCheck %s
33

44
target triple = "aarch64-unknown-linux-gnu"
55

llvm/test/CodeGen/AMDGPU/amdgpu-unroll-threshold.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -S -mtriple=amdgcn-- -loop-unroll | FileCheck %s
1+
; RUN: opt -temporarily-allow-old-pass-syntax < %s -S -mtriple=amdgcn-- -loop-unroll | FileCheck %s
22

33
; Check that the loop in unroll_default is not fully unrolled using the default
44
; unroll threshold

0 commit comments

Comments
 (0)