1 ; RUN: opt %loadPolly -polly-flatten-schedule -polly-delicm -analyze < %s | FileCheck %s
3 ; void func(double *A) {
4 ; for (int j = 0; j < 2; j += 1) { /* outer */
5 ; for (int i = 0; i < 4; i += 1) { /* reduction */
13 ; There is nothing to do in this case. All accesses are in %body.
15 define void @func(double* noalias nonnull %A) {
17 br label %outer.preheader
23 %j = phi i32 [0, %outer.preheader], [%j.inc, %outer.inc]
24 %j.cmp = icmp slt i32 %j, 2
25 br i1 %j.cmp, label %reduction.preheader, label %outer.exit
29 br label %reduction.for
32 %i = phi i32 [0, %reduction.preheader], [%i.inc, %reduction.inc]
38 %A_idx = getelementptr inbounds double, double* %A, i32 %j
39 %val = load double, double* %A_idx
40 %add = fadd double %val, 4.2
41 store double %add, double* %A_idx
42 br label %reduction.inc
47 %i.inc = add nuw nsw i32 %i, 1
48 %i.cmp = icmp slt i32 %i.inc, 4
49 br i1 %i.cmp, label %reduction.for, label %reduction.exit
57 %j.inc = add nuw nsw i32 %j, 1
68 ; CHECK: No modification has been made