brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.6 KiB · e6d3ae6 Raw
58 lines · plain
1; RUN: llc -O2 -mtriple=hexagon -enable-pipeliner \2; RUN: -debug-only=pipeliner < %s 2>&1 > /dev/null | FileCheck %s3; REQUIRES: asserts4;5; Test that the pragma check that disables pipeliner does not disable pipelining6; on both the loops.7; CHECK: Can not pipeline loop8; CHECK-NOT: Can not pipeline loop9 10; Function Attrs: nofree norecurse nounwind11define dso_local i32 @foo(ptr nocapture %a, ptr nocapture readonly %b, ptr nocapture %c) local_unnamed_addr #0 {12entry:13  br label %for.body14 15for.body:                                         ; preds = %for.body, %entry16  %i.023 = phi i32 [ 0, %entry ], [ %inc, %for.body ]17  %arrayidx = getelementptr inbounds i32, ptr %b, i32 %i.02318  %0 = load i32, ptr %arrayidx, align 4, !tbaa !219  %arrayidx1 = getelementptr inbounds i32, ptr %a, i32 %i.02320  %1 = load i32, ptr %arrayidx1, align 4, !tbaa !221  %add = add nsw i32 %1, %022  store i32 %add, ptr %arrayidx1, align 4, !tbaa !223  %inc = add nuw nsw i32 %i.023, 124  %exitcond24 = icmp eq i32 %inc, 1025  br i1 %exitcond24, label %for.body6, label %for.body, !llvm.loop !626 27for.cond.cleanup5:                                ; preds = %for.body628  ret i32 029 30for.body6:                                        ; preds = %for.body, %for.body631  %i2.022 = phi i32 [ %inc11, %for.body6 ], [ 0, %for.body ]32  %arrayidx7 = getelementptr inbounds i32, ptr %a, i32 %i2.02233  %2 = load i32, ptr %arrayidx7, align 4, !tbaa !234  %arrayidx8 = getelementptr inbounds i32, ptr %c, i32 %i2.02235  %3 = load i32, ptr %arrayidx8, align 4, !tbaa !236  %add9 = add nsw i32 %3, %237  store i32 %add9, ptr %arrayidx8, align 4, !tbaa !238  %inc11 = add nuw nsw i32 %i2.022, 139  %exitcond = icmp eq i32 %inc11, 1040  br i1 %exitcond, label %for.cond.cleanup5, label %for.body6, !llvm.loop !841}42 43attributes #0 = { nofree norecurse nounwind "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "frame-pointer"="all" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="hexagonv60" "target-features"="+v60,-long-calls" "unsafe-fp-math"="false" "use-soft-float"="false" }44 45!llvm.module.flags = !{!0}46!llvm.ident = !{!1}47 48!0 = !{i32 1, !"wchar_size", i32 4}49!1 = !{!"clang version 11.0.0 (https://github.com/llvm/llvm-project.git 6e29846b29d2bcaa8a7a3d869f24f242bd93d272)"}50!2 = !{!3, !3, i64 0}51!3 = !{!"int", !4, i64 0}52!4 = !{!"omnipotent char", !5, i64 0}53!5 = !{!"Simple C/C++ TBAA"}54!6 = distinct !{!6, !7}55!7 = !{!"llvm.loop.unroll.disable"}56!8 = distinct !{!8, !7, !9}57!9 = !{!"llvm.loop.pipeline.disable", i1 true}58