1 ; RUN: opt %loadPolly -polly-reschedule=0 -polly-loopfusion-greedy=1 -polly-postopts=0 -polly-print-opt-isl -disable-output < %s | FileCheck %s
2 ; RUN: opt %loadPolly -polly-reschedule=1 -polly-loopfusion-greedy=1 -polly-postopts=0 -polly-print-opt-isl -disable-output < %s | FileCheck %s
4 define void @func(i32 %n, ptr noalias nonnull %A, ptr noalias nonnull %B, i32 %k) {
10 %j1 = phi i32 [0, %entry], [%j1.inc, %inc1]
11 %j1.cmp = icmp slt i32 %j1, %n
12 br i1 %j1.cmp, label %body1, label %exit1
15 %idx1 = add i32 %j1, %k
16 %arrayidx1 = getelementptr inbounds double, ptr %A, i32 %j1
17 store double 21.0, ptr %arrayidx1
21 %j1.inc = add nuw nsw i32 %j1, 1
29 store double 52.0, ptr %A
34 %j3 = phi i32 [0, %middle2], [%j3.inc, %inc3]
35 %j3.cmp = icmp slt i32 %j3, %n
36 br i1 %j3.cmp, label %body3, label %exit3
39 %arrayidx3 = getelementptr inbounds double, ptr %B, i32 %j3
40 store double 84.0, ptr %arrayidx3
44 %j3.inc = add nuw nsw i32 %j3, 1
56 ; CHECK: Calculated schedule: