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