[PATCH] D23724: [PM] Port LoopDataPrefetch AArch64 tests to new pass manager

Balaram Makam via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 19 12:21:10 PDT 2016


bmakam created this revision.
bmakam added reviewers: tejohnson, mcrosier.
bmakam added a subscriber: llvm-commits.
Herald added subscribers: mcrosier, rengolin, aemerson.

https://reviews.llvm.org/D23724

Files:
  test/Transforms/LoopDataPrefetch/AArch64/kryo-large-stride.ll
  test/Transforms/LoopDataPrefetch/AArch64/large-stride.ll
  test/Transforms/LoopDataPrefetch/AArch64/opt-remark-with-hotness.ll
  test/Transforms/LoopDataPrefetch/AArch64/opt-remark.ll

Index: test/Transforms/LoopDataPrefetch/AArch64/opt-remark.ll
===================================================================
--- test/Transforms/LoopDataPrefetch/AArch64/opt-remark.ll
+++ test/Transforms/LoopDataPrefetch/AArch64/opt-remark.ll
@@ -1,6 +1,9 @@
 ; RUN: opt -mcpu=cyclone -mtriple=arm64-apple-ios -loop-data-prefetch \
 ; RUN:     -pass-remarks=loop-data-prefetch -S -max-prefetch-iters-ahead=100 \
 ; RUN:     < %s 2>&1 | FileCheck %s
+; RUN: opt -mcpu=cyclone -mtriple=arm64-apple-ios -passes=loop-data-prefetch \
+; RUN:     -pass-remarks=loop-data-prefetch -S -max-prefetch-iters-ahead=100 \
+; RUN:     < %s 2>&1 | FileCheck %s
 
 ; ModuleID = '/tmp/s.c'
 source_filename = "/tmp/s.c"
Index: test/Transforms/LoopDataPrefetch/AArch64/opt-remark-with-hotness.ll
===================================================================
--- test/Transforms/LoopDataPrefetch/AArch64/opt-remark-with-hotness.ll
+++ test/Transforms/LoopDataPrefetch/AArch64/opt-remark-with-hotness.ll
@@ -2,6 +2,10 @@
 ; RUN:     -pass-remarks=loop-data-prefetch -S -max-prefetch-iters-ahead=100 \
 ; RUN:     -pass-remarks-with-hotness \
 ; RUN:     < %s 2>&1 | FileCheck %s
+; RUN: opt -mcpu=cyclone -mtriple=arm64-apple-ios -passes=loop-data-prefetch \
+; RUN:     -pass-remarks=loop-data-prefetch -S -max-prefetch-iters-ahead=100 \
+; RUN:     -pass-remarks-with-hotness \
+; RUN:     < %s 2>&1 | FileCheck %s
 
 ; ModuleID = '/tmp/s.c'
 source_filename = "/tmp/s.c"
Index: test/Transforms/LoopDataPrefetch/AArch64/large-stride.ll
===================================================================
--- test/Transforms/LoopDataPrefetch/AArch64/large-stride.ll
+++ test/Transforms/LoopDataPrefetch/AArch64/large-stride.ll
@@ -1,6 +1,9 @@
 ; RUN: opt -mcpu=cyclone -mtriple=arm64-apple-ios -loop-data-prefetch -max-prefetch-iters-ahead=100 -S < %s | FileCheck %s --check-prefix=LARGE_PREFETCH --check-prefix=ALL
 ; RUN: opt -mcpu=cyclone -mtriple=arm64-apple-ios -loop-data-prefetch -S < %s | FileCheck %s --check-prefix=NO_LARGE_PREFETCH --check-prefix=ALL
 ; RUN: opt -mcpu=generic -mtriple=arm64-apple-ios -loop-data-prefetch -S < %s | FileCheck %s --check-prefix=NO_LARGE_PREFETCH --check-prefix=ALL
+; RUN: opt -mcpu=cyclone -mtriple=arm64-apple-ios -passes=loop-data-prefetch -max-prefetch-iters-ahead=100 -S < %s | FileCheck %s --check-prefix=LARGE_PREFETCH --check-prefix=ALL
+; RUN: opt -mcpu=cyclone -mtriple=arm64-apple-ios -passes=loop-data-prefetch -S < %s | FileCheck %s --check-prefix=NO_LARGE_PREFETCH --check-prefix=ALL
+; RUN: opt -mcpu=generic -mtriple=arm64-apple-ios -passes=loop-data-prefetch -S < %s | FileCheck %s --check-prefix=NO_LARGE_PREFETCH --check-prefix=ALL
 
 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-n32:64-S128"
 
Index: test/Transforms/LoopDataPrefetch/AArch64/kryo-large-stride.ll
===================================================================
--- test/Transforms/LoopDataPrefetch/AArch64/kryo-large-stride.ll
+++ test/Transforms/LoopDataPrefetch/AArch64/kryo-large-stride.ll
@@ -1,5 +1,7 @@
 ; RUN: opt -mcpu=kryo -mtriple=aarch64-gnu-linux -loop-data-prefetch -max-prefetch-iters-ahead=1000 -S < %s | FileCheck %s --check-prefix=LARGE_PREFETCH --check-prefix=ALL
 ; RUN: opt -mcpu=kryo -mtriple=aarch64-gnu-linux -loop-data-prefetch -S < %s | FileCheck %s --check-prefix=NO_LARGE_PREFETCH --check-prefix=ALL
+; RUN: opt -mcpu=kryo -mtriple=aarch64-gnu-linux -passes=loop-data-prefetch -max-prefetch-iters-ahead=1000 -S < %s | FileCheck %s --check-prefix=LARGE_PREFETCH --check-prefix=ALL
+; RUN: opt -mcpu=kryo -mtriple=aarch64-gnu-linux -passes=loop-data-prefetch -S < %s | FileCheck %s --check-prefix=NO_LARGE_PREFETCH --check-prefix=ALL
 
 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-n32:64-S128"
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23724.68720.patch
Type: text/x-patch
Size: 3915 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160819/7060d313/attachment.bin>


More information about the llvm-commits mailing list