brintos

brintos / llvm-project-archived public Read only

0
0
Text · 882 B · b057102 Raw
38 lines · plain
1; RUN: opt %loadNPMPolly -polly-pragma-based-opts=1 '-passes=polly-custom<opt-isl>' -polly-print-opt-isl -disable-output < %s | FileCheck %s --match-full-lines2;3; Override unroll metadata with llvm.loop.unroll.disable.4;5define void @func(i32 %n, ptr noalias nonnull %A) {6entry:7  br label %for8 9for:10  %j = phi i32 [0, %entry], [%j.inc, %inc]11  %j.cmp = icmp slt i32 %j, %n12  br i1 %j.cmp, label %body, label %exit13 14    body:15      store double 42.0, ptr %A16      br label %inc17 18inc:19  %j.inc = add nuw nsw i32 %j, 120  br label %for, !llvm.loop !221 22exit:23  br label %return24 25return:26  ret void27}28 29 30!2 = distinct !{!2, !3, !4}31!3 = !{!"llvm.loop.unroll.count", i32 4}32!4 = !{!"llvm.loop.unroll.disable"}33 34 35; CHECK-LABEL: Printing analysis 'Polly - Optimize schedule of SCoP' for region: 'for => return' in function 'func':36; CHECK-NEXT:  Calculated schedule:37; CHECK-NEXT:    n/a38