[test] Use new pass manager syntax in some tests
authorArthur Eubanks <aeubanks@google.com>
Sun, 23 Oct 2022 20:43:39 +0000 (13:43 -0700)
committerArthur Eubanks <aeubanks@google.com>
Sun, 23 Oct 2022 20:44:20 +0000 (13:44 -0700)
To prepare for upcoming change.

llvm/test/Analysis/MustExecute/must_be_executed_context.ll
llvm/test/Transforms/LoopTransformWarning/optnone.ll

index 7471a65..0327611 100644 (file)
@@ -1,6 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -print-mustexecute               -disable-output 2>&1 | FileCheck %s --check-prefix=ME
-; RUN: opt < %s -print-must-be-executed-contexts -disable-output 2>&1 | FileCheck %s --check-prefix=MBEC
+; RUN: opt < %s -passes=print-mustexecute               -disable-output 2>&1 | FileCheck %s --check-prefix=ME
 ; RUN: opt < %s -passes=print-must-be-executed-contexts -disable-output 2>&1 | FileCheck %s --check-prefix=MBEC
 ;
 ;    void simple_conditional(int c) {
index 866dac8..0cbfc9c 100644 (file)
@@ -1,7 +1,3 @@
-; Legacy pass manager
-; RUN: opt -transform-warning -disable-output -pass-remarks-missed=transform-warning -pass-remarks-analysis=transform-warning < %s 2>&1 | FileCheck -allow-empty %s
-;
-; New pass manager
 ; RUN: opt -passes=transform-warning -disable-output -pass-remarks-missed=transform-warning -pass-remarks-analysis=transform-warning < %s 2>&1 | FileCheck -allow-empty %s
 ;
 ; Verify that no transformation warnings are emitted for functions with