[PATCH] D91588: [NPM] Add remaining test of -slsr

Ta-Wei Tu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 16 22:27:03 PST 2020


TaWeiTu created this revision.
TaWeiTu added a reviewer: aeubanks.
Herald added subscribers: llvm-commits, kerbowa, nhaehnle, jvesely, jholewinski.
Herald added a project: LLVM.
TaWeiTu requested review of this revision.

Add RUN lines for NPM of -slsr tests that require -separate-const-offset-from-gep


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D91588

Files:
  llvm/test/Transforms/StraightLineStrengthReduce/AMDGPU/reassociate-geps-and-slsr-addrspace.ll
  llvm/test/Transforms/StraightLineStrengthReduce/NVPTX/reassociate-geps-and-slsr.ll


Index: llvm/test/Transforms/StraightLineStrengthReduce/NVPTX/reassociate-geps-and-slsr.ll
===================================================================
--- llvm/test/Transforms/StraightLineStrengthReduce/NVPTX/reassociate-geps-and-slsr.ll
+++ llvm/test/Transforms/StraightLineStrengthReduce/NVPTX/reassociate-geps-and-slsr.ll
@@ -1,5 +1,6 @@
 ; RUN: opt < %s -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
 
 target datalayout = "e-i64:64-v16:16-v32:32-n16:32:64"
 target triple = "nvptx64-unknown-unknown"
Index: llvm/test/Transforms/StraightLineStrengthReduce/AMDGPU/reassociate-geps-and-slsr-addrspace.ll
===================================================================
--- llvm/test/Transforms/StraightLineStrengthReduce/AMDGPU/reassociate-geps-and-slsr-addrspace.ll
+++ llvm/test/Transforms/StraightLineStrengthReduce/AMDGPU/reassociate-geps-and-slsr-addrspace.ll
@@ -1,4 +1,5 @@
 ; 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
 
 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"
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91588.305656.patch
Type: text/x-patch
Size: 1461 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201117/a820d013/attachment.bin>


More information about the llvm-commits mailing list