1 ; RUN: opt %loadPolly -polly-detect-unprofitable -polly-scops -polly-model-phi-nodes -disable-polly-intra-scop-scalar-to-array -analyze < %s | FileCheck %s
3 ; float f(float *A, int N) {
5 ; for (int i = 0; i < N; i++)
11 ; CHECK: ReadAccess := [Reduction Type: NONE]
12 ; CHECK: [N] -> { Stmt_bb1[i0] -> MemRef_tmp_0[] };
13 ; CHECK: MustWriteAccess := [Reduction Type: NONE]
14 ; CHECK: [N] -> { Stmt_bb1[i0] -> MemRef_tmp_0[] };
16 ; CHECK: MustWriteAccess := [Reduction Type: NONE]
17 ; CHECK: [N] -> { Stmt_bb4[i0] -> MemRef_tmp_0[] };
18 ; CHECK: ReadAccess := [Reduction Type: NONE]
19 ; CHECK: [N] -> { Stmt_bb4[i0] -> MemRef_tmp_0[] };
20 ; CHECK: ReadAccess := [Reduction Type: NONE]
21 ; CHECK: [N] -> { Stmt_bb4[i0] -> MemRef_A[i0] };
23 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
25 define void @f(float* %A, i32 %N) {
27 %tmp = sext i32 %N to i64
30 bb1: ; preds = %bb4, %bb
31 %indvars.iv = phi i64 [ %indvars.iv.next, %bb4 ], [ 0, %bb ]
32 %tmp.0 = phi float [ 0.000000e+00, %bb ], [ %tmp7, %bb4 ]
33 %tmp2 = icmp slt i64 %indvars.iv, %tmp
34 br i1 %tmp2, label %bb3, label %bb8
40 %tmp5 = getelementptr inbounds float, float* %A, i64 %indvars.iv
41 %tmp6 = load float* %tmp5, align 4
42 %tmp7 = fadd float %tmp.0, %tmp6
43 %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1