summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms
diff options
context:
space:
mode:
authorAdam Nemet <anemet@apple.com>2015-02-18 03:43:32 +0000
committerAdam Nemet <anemet@apple.com>2015-02-18 03:43:32 +0000
commitacd22e1677a729813499f8ead3cba347eb2c874c (patch)
tree3eea8fee8e4bede0952115fda5521739e97f595b /llvm/test/Transforms
parentd6b7e29815d209ade369c349c500c65ff9caa342 (diff)
downloadbcm5719-llvm-acd22e1677a729813499f8ead3cba347eb2c874c.tar.gz
bcm5719-llvm-acd22e1677a729813499f8ead3cba347eb2c874c.zip
[LoopAccesses] Modify test to also check symbolic strides with memchecks
See the comment in the code. This is part of the patchset that converts LoopAccessAnalysis into an actual analysis pass. llvm-svn: 229627
Diffstat (limited to 'llvm/test/Transforms')
-rw-r--r--llvm/test/Transforms/LoopVectorize/version-mem-access.ll12
1 files changed, 9 insertions, 3 deletions
diff --git a/llvm/test/Transforms/LoopVectorize/version-mem-access.ll b/llvm/test/Transforms/LoopVectorize/version-mem-access.ll
index 7ac2fca2533..37145aaa092 100644
--- a/llvm/test/Transforms/LoopVectorize/version-mem-access.ll
+++ b/llvm/test/Transforms/LoopVectorize/version-mem-access.ll
@@ -2,10 +2,16 @@
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
+; Check that we version this loop with speculating the value 1 for symbolic
+; strides. This also checks that the symbolic stride information is correctly
+; propagated to the memcheck generation. Without this the loop wouldn't
+; vectorize because we couldn't determine the array bounds for the required
+; memchecks.
+
; CHECK-LABEL: test
-define void @test(i32* noalias %A, i64 %AStride,
- i32* noalias %B, i32 %BStride,
- i32* noalias %C, i64 %CStride, i32 %N) {
+define void @test(i32* %A, i64 %AStride,
+ i32* %B, i32 %BStride,
+ i32* %C, i64 %CStride, i32 %N) {
entry:
%cmp13 = icmp eq i32 %N, 0
br i1 %cmp13, label %for.end, label %for.body.preheader
OpenPOWER on IntegriCloud