1 ; RUN: opt %loadPolly -polly-print-delicm -pass-remarks-missed=polly-delicm -disable-output < %s 2>&1 | FileCheck %s
3 ; void func(double *A) {
4 ; for (int j = 0; j < 2; j += 1) { /* outer */
6 ; for (int i = 0; i < 4; i += 1) /* reduction */
12 define void @func(ptr noalias nonnull %A) {
14 br label %outer.preheader
20 %j = phi i32 [0, %outer.preheader], [%j.inc, %outer.inc]
21 %j.cmp = icmp slt i32 %j, 2
22 br i1 %j.cmp, label %reduction.preheader, label %outer.exit
26 br label %reduction.for
29 %i = phi i32 [0, %reduction.preheader], [%i.inc, %reduction.inc]
30 %phi = phi double [0.0, %reduction.preheader], [%add, %reduction.inc]
31 %i.cmp = icmp slt i32 %i, 4
32 br i1 %i.cmp, label %body, label %reduction.exit
37 %add = fadd double %phi, 4.2
38 br label %reduction.inc
43 %i.inc = add nuw nsw i32 %i, 1
44 br label %reduction.for
47 store double %phi, ptr %A
53 %j.inc = add nuw nsw i32 %j, 1
64 ; CHECK: skipped possible mapping target because the memory location written to does not depend on its outer loop