1; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-scops -analyze -polly-print-instructions < %s | FileCheck %s 2; 3; CHECK: Statements { 4; CHECK-NEXT: Stmt_Stmt 5; CHECK-NEXT: Domain := 6; CHECK-NEXT: { Stmt_Stmt[i0] : 0 <= i0 <= 1023 }; 7; CHECK-NEXT: Schedule := 8; CHECK-NEXT: { Stmt_Stmt[i0] -> [i0, 0] }; 9; CHECK-NEXT: MustWriteAccess := [Reduction Type: NONE] [Scalar: 0] 10; CHECK-NEXT: { Stmt_Stmt[i0] -> MemRef_A[i0] }; 11; CHECK-NEXT: MustWriteAccess := [Reduction Type: NONE] [Scalar: 1] 12; CHECK-NEXT: { Stmt_Stmt[i0] -> MemRef_a[] }; 13; CHECK-NEXT: Instructions { 14; CHECK-NEXT: %a = fadd double 2.100000e+01, 2.100000e+01 15; CHECK-NEXT: store i32 %i.0, i32* %arrayidx, align 4, !polly_split_after !0 16; CHECK-NEXT: } 17; CHECK-NEXT: Stmt_Stmt_b 18; CHECK-NEXT: Domain := 19; CHECK-NEXT: { Stmt_Stmt_b[i0] : 0 <= i0 <= 1023 }; 20; CHECK-NEXT: Schedule := 21; CHECK-NEXT: { Stmt_Stmt_b[i0] -> [i0, 1] }; 22; CHECK-NEXT: MustWriteAccess := [Reduction Type: NONE] [Scalar: 0] 23; CHECK-NEXT: { Stmt_Stmt_b[i0] -> MemRef_B[0] }; 24; CHECK-NEXT: ReadAccess := [Reduction Type: NONE] [Scalar: 1] 25; CHECK-NEXT: { Stmt_Stmt_b[i0] -> MemRef_a[] }; 26; CHECK-NEXT: Instructions { 27; CHECK-NEXT: store double %a, double* %B 28; CHECK-NEXT: } 29; CHECK-NEXT: } 30; 31; Function Attrs: noinline nounwind uwtable 32define void @func(i32* %A, double* %B) #0 { 33entry: 34 br label %for.cond 35 36for.cond: ; preds = %for.inc, %entry 37 %i.0 = phi i32 [ 0, %entry ], [ %add, %for.inc ] 38 %cmp = icmp slt i32 %i.0, 1024 39 br i1 %cmp, label %for.body, label %for.end 40 41for.body: ; preds = %for.cond 42 br label %Stmt 43 44Stmt: 45 %a = fadd double 21.0, 21.0 46 %idxprom = sext i32 %i.0 to i64 47 %arrayidx = getelementptr inbounds i32, i32* %A, i64 %idxprom 48 store i32 %i.0, i32* %arrayidx, align 4, !polly_split_after !0 49 store double %a, double* %B 50 br label %for.inc 51 52for.inc: ; preds = %Stmt 53 %add = add nsw i32 %i.0, 1 54 br label %for.cond 55 56for.end: ; preds = %for.cond 57 ret void 58} 59 60!0 = !{!"polly_split_after"} 61