1 ; RUN: opt %loadPolly -polly-stmt-granularity=scalar-indep -polly-print-instructions -polly-print-scops -disable-output < %s | FileCheck %s -match-full-lines
3 ; This case has no explicit epilogue for PHI writes because it would
4 ; have a scalar dependency to the previous statement.
6 ; for (int j = 0; j < n; j += 1) {
15 define void @func(i32 %n, ptr noalias nonnull %A) {
20 %j = phi i32 [0, %entry], [%j.inc, %inc]
21 %j.cmp = icmp slt i32 %j, %n
22 br i1 %j.cmp, label %bodyA, label %exit
25 %valA = load double, ptr %A
26 store double %valA, ptr %A
30 %phi = phi double [%valA, %bodyA]
34 %j.inc = add nuw nsw i32 %j, 1
46 ; CHECK-NEXT: Stmt_bodyA
47 ; CHECK-NEXT: Domain :=
48 ; CHECK-NEXT: [n] -> { Stmt_bodyA[i0] : 0 <= i0 < n };
49 ; CHECK-NEXT: Schedule :=
50 ; CHECK-NEXT: [n] -> { Stmt_bodyA[i0] -> [i0] };
51 ; CHECK-NEXT: ReadAccess := [Reduction Type: NONE] [Scalar: 0]
52 ; CHECK-NEXT: [n] -> { Stmt_bodyA[i0] -> MemRef_A[0] };
53 ; CHECK-NEXT: MustWriteAccess := [Reduction Type: NONE] [Scalar: 0]
54 ; CHECK-NEXT: [n] -> { Stmt_bodyA[i0] -> MemRef_A[0] };
55 ; CHECK-NEXT: MustWriteAccess := [Reduction Type: NONE] [Scalar: 1]
56 ; CHECK-NEXT: [n] -> { Stmt_bodyA[i0] -> MemRef_phi__phi[] };
57 ; CHECK-NEXT: Instructions {
58 ; CHECK-NEXT: %valA = load double, ptr %A, align 8
59 ; CHECK-NEXT: store double %valA, ptr %A, align 8