1; RUN: opt %loadNPMPolly '-passes=print<polly-opt-isl>' -disable-output < %s | FileCheck %s -match-full-lines 2; 3; Check that the disable_nonforced metadata is honored; optimization 4; heuristics/rescheduling must not be applied. 5; 6define void @func(i32 %n, ptr noalias nonnull %A) { 7entry: 8 br label %for 9 10for: 11 %j = phi i32 [0, %entry], [%j.inc, %inc] 12 %j.cmp = icmp slt i32 %j, %n 13 br i1 %j.cmp, label %inner.for, label %exit 14 15 16 inner.for: 17 %i = phi i32 [0, %for], [%i.inc, %inner.inc] 18 br label %bodyA 19 20 21 bodyA: 22 %mul = mul nuw nsw i32 %j, 128 23 %add = add nuw nsw i32 %mul, %i 24 %A_idx = getelementptr inbounds double, ptr %A, i32 %add 25 store double 0.0, ptr %A_idx 26 br label %inner.inc 27 28 29 inner.inc: 30 %i.inc = add nuw nsw i32 %i, 1 31 %i.cmp = icmp slt i32 %i.inc, 128 32 br i1 %i.cmp, label %inner.for, label %inner.exit 33 34 inner.exit: 35 br label %inc, !llvm.loop !2 36 37 38inc: 39 %j.inc = add nuw nsw i32 %j, 1 40 br label %for, !llvm.loop !2 41 42exit: 43 br label %return 44 45return: 46 ret void 47} 48 49 50!2 = distinct !{!2, !3} 51!3 = !{!"llvm.loop.disable_nonforced"} 52 53 54; n/a indicates no new schedule was computed 55; 56; CHECK-LABEL: Printing analysis 'Polly - Optimize schedule of SCoP' for region: 'for => return' in function 'func': 57; CHECK-NEXT: Calculated schedule: 58; CHECK-NEXT: n/a 59