1 ; RUN: opt %loadNPMPolly -polly-pragma-based-opts=1 '-passes=print<polly-opt-isl>' -disable-output < %s | FileCheck %s --match-full-lines
2 ; RUN: opt %loadNPMPolly -polly-pragma-based-opts=0 '-passes=print<polly-opt-isl>' -disable-output < %s | FileCheck %s --match-full-lines
4 ; Unrolling with heuristic factor.
5 ; Currently not supported and expected to be handled by LLVM's unroll pass.
7 define void @func(i32 %n, ptr noalias nonnull %A) {
12 %j = phi i32 [0, %entry], [%j.inc, %inc]
13 %j.cmp = icmp slt i32 %j, %n
14 br i1 %j.cmp, label %body, label %exit
17 store double 42.0, ptr %A
21 %j.inc = add nuw nsw i32 %j, 1
22 br label %for, !llvm.loop !2
32 !2 = distinct !{!2, !4}
33 !4 = !{!"llvm.loop.unroll.enable", i1 true}
36 ; CHECK-LABEL: Printing analysis 'Polly - Optimize schedule of SCoP' for region: 'for => return' in function 'func':
37 ; CHECK-NEXT: Calculated schedule: