[llvm] a413663 - [NewPM][test] Avoid using -enable-new-pm=1 since -passes implies new PM

Bjorn Pettersson via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 20 06:16:59 PDT 2021


Author: Bjorn Pettersson
Date: 2021-10-20T15:16:17+02:00
New Revision: a413663d8fea6700076010b7e4458b03a8bfb8b4

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

LOG: [NewPM][test] Avoid using -enable-new-pm=1 since -passes implies new PM

Added: 
    

Modified: 
    llvm/test/CodeGen/PowerPC/opt-builtins-ppc-xlcompat-cas.ll
    llvm/test/Transforms/FunctionAttrs/nofree-attributor.ll
    llvm/test/Transforms/LICM/no-hoist-prof.ll
    llvm/test/Transforms/LoopUnswitch/AMDGPU/uniform-unswitch.ll
    llvm/test/Transforms/PhaseOrdering/openmp-opt-module.ll
    llvm/test/Transforms/SLPVectorizer/X86/limit.ll
    llvm/test/Transforms/SampleProfile/remarks-hotness.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/PowerPC/opt-builtins-ppc-xlcompat-cas.ll b/llvm/test/CodeGen/PowerPC/opt-builtins-ppc-xlcompat-cas.ll
index a3279c8a2c2c..6fa25bf36c3f 100644
--- a/llvm/test/CodeGen/PowerPC/opt-builtins-ppc-xlcompat-cas.ll
+++ b/llvm/test/CodeGen/PowerPC/opt-builtins-ppc-xlcompat-cas.ll
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -enable-new-pm=1 -S -passes='default<O3>' %s -o - | FileCheck %s
+; RUN: opt -S -passes='default<O3>' %s -o - | FileCheck %s
 define void @test_builtin_ppc_compare_and_swaplp(i64 %a, i64 %b, i64 %c) {
 ; CHECK-LABEL: @test_builtin_ppc_compare_and_swaplp(
 ; CHECK-NEXT:  entry:

diff  --git a/llvm/test/Transforms/FunctionAttrs/nofree-attributor.ll b/llvm/test/Transforms/FunctionAttrs/nofree-attributor.ll
index 306779762608..22c9ce238d6c 100644
--- a/llvm/test/Transforms/FunctionAttrs/nofree-attributor.ll
+++ b/llvm/test/Transforms/FunctionAttrs/nofree-attributor.ll
@@ -1,4 +1,4 @@
-; RUN: opt -enable-new-pm=1 -function-attrs --disable-nofree-inference=false -S < %s | FileCheck %s --check-prefix=FNATTR
+; RUN: opt -passes=function-attrs --aa-pipeline=basic-aa --disable-nofree-inference=false -S < %s | FileCheck %s --check-prefix=FNATTR
 
 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
 

diff  --git a/llvm/test/Transforms/LICM/no-hoist-prof.ll b/llvm/test/Transforms/LICM/no-hoist-prof.ll
index 1b18aa3c288e..1775ecc21c4d 100644
--- a/llvm/test/Transforms/LICM/no-hoist-prof.ll
+++ b/llvm/test/Transforms/LICM/no-hoist-prof.ll
@@ -1,4 +1,4 @@
-; RUN: opt -enable-new-pm=1 -sample-profile -licm -S -sample-profile-file='%S/Inputs/no-hoist-prof.prof' < %s | FileCheck %s --check-prefix=CHECK-BFI-LICM
+; RUN: opt -passes='sample-profile,function(loop-mssa(licm))' -aa-pipeline=basic-aa -S -sample-profile-file='%S/Inputs/no-hoist-prof.prof' < %s | FileCheck %s --check-prefix=CHECK-BFI-LICM
 ; RUN: opt -passes=licm -S < %s | FileCheck %s --check-prefix=CHECK-LICM
 
 ; Original source code:

diff  --git a/llvm/test/Transforms/LoopUnswitch/AMDGPU/uniform-unswitch.ll b/llvm/test/Transforms/LoopUnswitch/AMDGPU/uniform-unswitch.ll
index b9feba0cfda3..51e46c5350da 100644
--- a/llvm/test/Transforms/LoopUnswitch/AMDGPU/uniform-unswitch.ll
+++ b/llvm/test/Transforms/LoopUnswitch/AMDGPU/uniform-unswitch.ll
@@ -1,4 +1,4 @@
-; RUN: opt -mtriple=amdgcn-- -O3 -S -enable-new-pm=1 %s | FileCheck %s
+; RUN: opt -mtriple=amdgcn-- -passes='default<O3>' -S %s | FileCheck %s
 ; XFAIL: *
 
 ; Check that loop unswitch happened and condition hoisted out of the loop.

diff  --git a/llvm/test/Transforms/PhaseOrdering/openmp-opt-module.ll b/llvm/test/Transforms/PhaseOrdering/openmp-opt-module.ll
index 6761bf24f2b0..24272b3aea32 100644
--- a/llvm/test/Transforms/PhaseOrdering/openmp-opt-module.ll
+++ b/llvm/test/Transforms/PhaseOrdering/openmp-opt-module.ll
@@ -1,4 +1,4 @@
-; RUN: opt -O2 -pass-remarks-missed=openmp-opt -enable-new-pm < %s 2>&1 | FileCheck %s --check-prefix=MODULE
+; RUN: opt -passes='default<O2>' -pass-remarks-missed=openmp-opt < %s 2>&1 | FileCheck %s --check-prefix=MODULE
 target datalayout = "e-i64:64-i128:128-v16:16-v32:32-n16:32:64"
 
 %struct.ident_t = type { i32, i32, i32, i32, i8* }

diff  --git a/llvm/test/Transforms/SLPVectorizer/X86/limit.ll b/llvm/test/Transforms/SLPVectorizer/X86/limit.ll
index 8c1930c9c26a..82861e1717d7 100644
--- a/llvm/test/Transforms/SLPVectorizer/X86/limit.ll
+++ b/llvm/test/Transforms/SLPVectorizer/X86/limit.ll
@@ -1,6 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -slp-vectorizer -S | FileCheck %s
-; RUN: opt < %s -slp-vectorizer -enable-new-pm -S | FileCheck %s
+; RUN: opt < %s -passes=slp-vectorizer -S | FileCheck %s
 
 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
 target triple = "x86_64-unknown-linux-gnu"

diff  --git a/llvm/test/Transforms/SampleProfile/remarks-hotness.ll b/llvm/test/Transforms/SampleProfile/remarks-hotness.ll
index 3ef3a49b69c1..36fb3c581817 100644
--- a/llvm/test/Transforms/SampleProfile/remarks-hotness.ll
+++ b/llvm/test/Transforms/SampleProfile/remarks-hotness.ll
@@ -2,7 +2,7 @@
 ;;
 ;; new PM
 ; RUN: rm -f %t.yaml %t.hot.yaml
-; RUN: opt %s --enable-new-pm --passes='sample-profile,cgscc(inline)' \
+; RUN: opt %s --passes='sample-profile,cgscc(inline)' \
 ; RUN: --sample-profile-file=%S/Inputs/remarks-hotness.prof \
 ; RUN: -S --pass-remarks-filter=inline --pass-remarks-output=%t.yaml \
 ; RUN: -pass-remarks-with-hotness --disable-output
@@ -10,14 +10,14 @@
 ; RUN: FileCheck %s -check-prefix=YAML-MISS < %t.yaml
 
 ;; test 'auto' threshold
-; RUN: opt %s --enable-new-pm --passes='sample-profile,cgscc(inline)' \
+; RUN: opt %s --passes='sample-profile,cgscc(inline)' \
 ; RUN: --sample-profile-file=%S/Inputs/remarks-hotness.prof \
 ; RUN: -S --pass-remarks-filter=inline --pass-remarks-output=%t.hot.yaml \
 ; RUN: --pass-remarks-with-hotness --pass-remarks-hotness-threshold=auto --disable-output
 ; RUN: FileCheck %s -check-prefix=YAML-PASS < %t.hot.yaml
 ; RUN: not FileCheck %s -check-prefix=YAML-MISS < %t.hot.yaml
 
-; RUN: opt %s --enable-new-pm --passes='sample-profile,cgscc(inline)' \
+; RUN: opt %s --passes='sample-profile,cgscc(inline)' \
 ; RUN: --sample-profile-file=%S/Inputs/remarks-hotness.prof \
 ; RUN: -S --pass-remarks=inline --pass-remarks-missed=inline --pass-remarks-analysis=inline \
 ; RUN: --pass-remarks-with-hotness --pass-remarks-hotness-threshold=auto --disable-output 2>&1 | FileCheck %s -check-prefix=CHECK-RPASS


        


More information about the llvm-commits mailing list