1 ; RUN: opt %loadPolly -polly-ast -polly-ast-print-accesses -analyze \
2 ; RUN: -polly-allow-nonaffine < %s \
5 ; void non_affine_access(float A[]) {
6 ; for (long i = 0; i < 1024; i++)
10 ; CHECK: for (int c0 = 0; c0 <= 1023; c0 += 1)
12 ; CHECK: /* write */ MemRef_A[*]
15 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
16 target triple = "x86_64-pc-linux-gnu"
18 define void @non_affine_access(float* %A) {
22 bb1: ; preds = %bb6, %bb
23 %i.0 = phi i64 [ 0, %bb ], [ %tmp7, %bb6 ]
24 %exitcond = icmp ne i64 %i.0, 1024
25 br i1 %exitcond, label %bb3, label %bb2
31 %prod = mul i64 %i.0, %i.0
32 %tmp5 = getelementptr inbounds float, float* %A, i64 %prod
33 store float 1.000000e+00, float* %tmp5, align 4, !tbaa !5
37 %tmp7 = add nuw nsw i64 %i.0, 1
46 !0 = !{!"Ubuntu clang version 3.7.1-3ubuntu4 (tags/RELEASE_371/final) (based on LLVM 3.7.1)"}
48 !2 = !{!"long", !3, i64 0}
49 !3 = !{!"omnipotent char", !4, i64 0}
50 !4 = !{!"Simple C/C++ TBAA"}
52 !6 = !{!"float", !3, i64 0}