1 ; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-print-delicm -disable-output < %s | FileCheck %s
2 ; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-delicm -disable-output -stats < %s 2>&1 | FileCheck %s --check-prefix=STATS
5 ; void func(double *A) {
6 ; for (int j = 0; j < 2; j += 1) { /* outer */
10 ; for (int i = 0; i < 4; i += 1) /* reduction */
17 define void @func(ptr noalias nonnull %A) {
19 br label %outer.preheader
25 %j = phi i32 [0, %outer.preheader], [%j.inc, %outer.inc]
26 %j.cmp = icmp slt i32 %j, 2
27 br i1 %j.cmp, label %reduction.preheader, label %outer.exit
31 %A_idx = getelementptr inbounds double, ptr %A, i32 %j
32 store double 21.0, ptr %A_idx
33 store double 42.0, ptr %A_idx
34 br label %reduction.for
37 %i = phi i32 [0, %reduction.preheader], [%i.inc, %reduction.inc]
38 %phi = phi double [0.0, %reduction.preheader], [%add, %reduction.inc]
39 %i.cmp = icmp slt i32 %i, 4
40 br i1 %i.cmp, label %body, label %reduction.exit
45 %add = fadd double %phi, 4.2
46 br label %reduction.inc
51 %i.inc = add nuw nsw i32 %i, 1
52 br label %reduction.for
55 store double %phi, ptr %A_idx
61 %j.inc = add nuw nsw i32 %j, 1
72 ; CHECK: No modification has been made
73 ; STATS: 1 polly-zone - Number of not zone-analyzable arrays