1 ; RUN: opt %loadPolly -polly-print-scops -disable-output < %s | FileCheck %s
3 ; void f(int *A, int c, int N) {
5 ; for (int i = 0; i < N; i++) {
15 ; CHECK-LABEL: Stmt_bb6
17 ; CHECK: MustWriteAccess := [Reduction Type: NONE] [Scalar: 1]
18 ; CHECK: [N, c] -> { Stmt_bb6[i0] -> MemRef_tmp_0__phi[] };
20 ; CHECK-LABEL: Stmt_bb7
22 ; CHECK: MustWriteAccess := [Reduction Type: NONE] [Scalar: 1]
23 ; CHECK: [N, c] -> { Stmt_bb7[i0] -> MemRef_tmp_0__phi[] };
25 ; CHECK-LABEL: Stmt_bb8
27 ; CHECK: ReadAccess := [Reduction Type: NONE] [Scalar: 1]
28 ; CHECK: [N, c] -> { Stmt_bb8[i0] -> MemRef_tmp_0__phi[] };
30 ; CHECK: MustWriteAccess := [Reduction Type: NONE] [Scalar: 0]
31 ; CHECK: [N, c] -> { Stmt_bb8[i0] -> MemRef_A[i0] };
35 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
37 define void @f(ptr %A, i32 %c, i32 %N) {
39 %tmp = sext i32 %N to i64
40 %tmp1 = sext i32 %c to i64
43 bb2: ; preds = %bb10, %bb
44 %indvars.iv = phi i64 [ %indvars.iv.next, %bb10 ], [ 0, %bb ]
45 %tmp3 = icmp slt i64 %indvars.iv, %tmp
46 br i1 %tmp3, label %bb4, label %bb11
49 %tmp5 = icmp sgt i64 %indvars.iv, %tmp1
50 br i1 %tmp5, label %bb6, label %bb7
58 bb8: ; preds = %bb7, %bb6
59 %tmp.0 = phi i32 [ 3, %bb6 ], [ 5, %bb7 ]
60 %tmp9 = getelementptr inbounds i32, ptr %A, i64 %indvars.iv
61 store i32 %tmp.0, ptr %tmp9, align 4
65 %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1