Skip to content

Commit

Permalink
[LoopAccesses] Modify test to also check symbolic strides with memchecks
Browse files Browse the repository at this point in the history
See the comment in the code.

This is part of the patchset that converts LoopAccessAnalysis into an
actual analysis pass.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229627 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
anemet committed Feb 18, 2015
1 parent 718b023 commit 47985fb
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions test/Transforms/LoopVectorize/version-mem-access.ll
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 47985fb

Please sign in to comment.