From 97c7e14c522cd2565651a4a6b0581f82dccd60ca Mon Sep 17 00:00:00 2001 From: Roman Lebedev Date: Thu, 8 Dec 2022 02:27:38 +0300 Subject: [PATCH] [NFC] Port all StraightLineStrengthReduce tests to `-passes=` syntax --- llvm/test/Transforms/StraightLineStrengthReduce/AMDGPU/pr23975.ll | 2 +- .../AMDGPU/reassociate-geps-and-slsr-addrspace.ll | 2 +- .../StraightLineStrengthReduce/NVPTX/reassociate-geps-and-slsr.ll | 2 +- llvm/test/Transforms/StraightLineStrengthReduce/X86/no-slsr.ll | 2 +- llvm/test/Transforms/StraightLineStrengthReduce/slsr-add.ll | 2 +- llvm/test/Transforms/StraightLineStrengthReduce/slsr-gep.ll | 2 +- llvm/test/Transforms/StraightLineStrengthReduce/slsr-mul.ll | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/llvm/test/Transforms/StraightLineStrengthReduce/AMDGPU/pr23975.ll b/llvm/test/Transforms/StraightLineStrengthReduce/AMDGPU/pr23975.ll index 110d37c..b3cbc3d 100644 --- a/llvm/test/Transforms/StraightLineStrengthReduce/AMDGPU/pr23975.ll +++ b/llvm/test/Transforms/StraightLineStrengthReduce/AMDGPU/pr23975.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -slsr -S | FileCheck %s +; RUN: opt < %s -passes=slsr -S | FileCheck %s ; RUN: opt < %s -passes='slsr' -S | FileCheck %s target datalayout = "e-p:32:32-p1:64:64-p2:64:64-p3:32:32-p4:64:64-p5:32:32-p24:64:64-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64" diff --git a/llvm/test/Transforms/StraightLineStrengthReduce/AMDGPU/reassociate-geps-and-slsr-addrspace.ll b/llvm/test/Transforms/StraightLineStrengthReduce/AMDGPU/reassociate-geps-and-slsr-addrspace.ll index a495855..e92b389c 100644 --- a/llvm/test/Transforms/StraightLineStrengthReduce/AMDGPU/reassociate-geps-and-slsr-addrspace.ll +++ b/llvm/test/Transforms/StraightLineStrengthReduce/AMDGPU/reassociate-geps-and-slsr-addrspace.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -mtriple=amdgcn-- -separate-const-offset-from-gep -slsr -gvn < %s | FileCheck %s +; RUN: opt -S -mtriple=amdgcn-- -passes=separate-const-offset-from-gep,slsr,gvn < %s | FileCheck %s ; RUN: opt -S -mtriple=amdgcn-- -passes="separate-const-offset-from-gep,slsr,gvn" < %s | FileCheck %s target datalayout = "e-p:32:32-p1:64:64-p2:64:64-p3:32:32-p4:64:64-p5:32:32-p24:64:64-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64" diff --git a/llvm/test/Transforms/StraightLineStrengthReduce/NVPTX/reassociate-geps-and-slsr.ll b/llvm/test/Transforms/StraightLineStrengthReduce/NVPTX/reassociate-geps-and-slsr.ll index 035787f..0ff4d29 100644 --- a/llvm/test/Transforms/StraightLineStrengthReduce/NVPTX/reassociate-geps-and-slsr.ll +++ b/llvm/test/Transforms/StraightLineStrengthReduce/NVPTX/reassociate-geps-and-slsr.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -separate-const-offset-from-gep -slsr -gvn -S | FileCheck %s +; RUN: opt < %s -passes=separate-const-offset-from-gep,slsr,gvn -S | FileCheck %s ; RUN: llc < %s -march=nvptx64 -mcpu=sm_35 | FileCheck %s --check-prefix=PTX ; RUN: opt < %s -passes="separate-const-offset-from-gep,slsr,gvn" -S | FileCheck %s diff --git a/llvm/test/Transforms/StraightLineStrengthReduce/X86/no-slsr.ll b/llvm/test/Transforms/StraightLineStrengthReduce/X86/no-slsr.ll index 7608be9..0fde71e 100644 --- a/llvm/test/Transforms/StraightLineStrengthReduce/X86/no-slsr.ll +++ b/llvm/test/Transforms/StraightLineStrengthReduce/X86/no-slsr.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -slsr -gvn -S | FileCheck %s +; RUN: opt < %s -passes=slsr,gvn -S | FileCheck %s ; RUN: opt < %s -passes='slsr,gvn' -S | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" diff --git a/llvm/test/Transforms/StraightLineStrengthReduce/slsr-add.ll b/llvm/test/Transforms/StraightLineStrengthReduce/slsr-add.ll index da48e85..591e74c 100644 --- a/llvm/test/Transforms/StraightLineStrengthReduce/slsr-add.ll +++ b/llvm/test/Transforms/StraightLineStrengthReduce/slsr-add.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -slsr -gvn -S | FileCheck %s +; RUN: opt < %s -passes=slsr,gvn -S | FileCheck %s ; RUN: opt < %s -passes='slsr,gvn' -S | FileCheck %s target datalayout = "e-i64:64-v16:16-v32:32-n16:32:64" diff --git a/llvm/test/Transforms/StraightLineStrengthReduce/slsr-gep.ll b/llvm/test/Transforms/StraightLineStrengthReduce/slsr-gep.ll index 8c800b8..ad1ad46 100644 --- a/llvm/test/Transforms/StraightLineStrengthReduce/slsr-gep.ll +++ b/llvm/test/Transforms/StraightLineStrengthReduce/slsr-gep.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -slsr -gvn -S | FileCheck %s +; RUN: opt < %s -passes=slsr,gvn -S | FileCheck %s ; RUN: opt < %s -passes='slsr,gvn' -S | FileCheck %s target datalayout = "e-i64:64-v16:16-v32:32-n16:32:64-p:64:64:64-p1:32:32:32" diff --git a/llvm/test/Transforms/StraightLineStrengthReduce/slsr-mul.ll b/llvm/test/Transforms/StraightLineStrengthReduce/slsr-mul.ll index 208719d..485c666a 100644 --- a/llvm/test/Transforms/StraightLineStrengthReduce/slsr-mul.ll +++ b/llvm/test/Transforms/StraightLineStrengthReduce/slsr-mul.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -slsr -gvn -S | FileCheck %s +; RUN: opt < %s -passes=slsr,gvn -S | FileCheck %s ; RUN: opt < %s -passes='slsr,gvn' -S | FileCheck %s target datalayout = "e-i64:64-v16:16-v32:32-n16:32:64" -- 2.7.4