[llvm] c8ca8fb - [test] Use new pass manager syntax in some tests

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 23 13:44:34 PDT 2022


Author: Arthur Eubanks
Date: 2022-10-23T13:44:20-07:00
New Revision: c8ca8fb9789a47766662c6e89c1903d1cb1d6d94

URL: https://github.com/llvm/llvm-project/commit/c8ca8fb9789a47766662c6e89c1903d1cb1d6d94
DIFF: https://github.com/llvm/llvm-project/commit/c8ca8fb9789a47766662c6e89c1903d1cb1d6d94.diff

LOG: [test] Use new pass manager syntax in some tests

To prepare for upcoming change.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/test/Analysis/MustExecute/must_be_executed_context.ll b/llvm/test/Analysis/MustExecute/must_be_executed_context.ll
index 7471a6559ab72..0327611241993 100644
--- a/llvm/test/Analysis/MustExecute/must_be_executed_context.ll
+++ b/llvm/test/Analysis/MustExecute/must_be_executed_context.ll
@@ -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) {

diff  --git a/llvm/test/Transforms/LoopTransformWarning/optnone.ll b/llvm/test/Transforms/LoopTransformWarning/optnone.ll
index 866dac8e9d882..0cbfc9c2f5bac 100644
--- a/llvm/test/Transforms/LoopTransformWarning/optnone.ll
+++ b/llvm/test/Transforms/LoopTransformWarning/optnone.ll
@@ -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


        


More information about the llvm-commits mailing list