67 lines · plain
1; RUN: llc -mtriple=hexagon -enable-pipeliner=true -stats -o /dev/null < %s \2; RUN: 2>&1 -pipeliner-experimental-cg=true | FileCheck %s --check-prefix=STATS3; REQUIRES: asserts4 5; Test that we do not schedule chained references too far apart,6; which enables the loop to be pipelined. In this test, the loop should7; not be pipelined when the chained references are constrained correctly.8 9; STATS-NOT: 1 pipeliner - Number of loops software pipelined10 11; Function Attrs: nounwind12define void @f0() #0 {13b0:14 br label %b215 16b1: ; preds = %b617 br label %b718 19b2: ; preds = %b6, %b020 br label %b321 22b3: ; preds = %b5, %b223 br i1 undef, label %b4, label %b524 25b4: ; preds = %b326 br label %b527 28b5: ; preds = %b4, %b329 br i1 undef, label %b3, label %b630 31b6: ; preds = %b532 br i1 undef, label %b1, label %b233 34b7: ; preds = %b7, %b135 %v0 = phi i32 [ 0, %b1 ], [ %v4, %b7 ]36 %v1 = load i16, ptr undef, align 8, !tbaa !037 %v2 = icmp sgt i16 %v1, undef38 %v3 = select i1 %v2, i16 4, i16 undef39 store i16 %v3, ptr undef, align 2, !tbaa !040 store i16 -32768, ptr undef, align 2, !tbaa !041 %v4 = add i32 %v0, 142 %v5 = icmp eq i32 %v4, 543 br i1 %v5, label %b8, label %b744 45b8: ; preds = %b746 br i1 undef, label %b9, label %b1047 48b9: ; preds = %b849 br label %b1050 51b10: ; preds = %b9, %b852 br i1 undef, label %b11, label %b1253 54b11: ; preds = %b1055 unreachable56 57b12: ; preds = %b1058 ret void59}60 61attributes #0 = { nounwind "target-cpu"="hexagonv55" }62 63!0 = !{!1, !1, i64 0}64!1 = !{!"short", !2}65!2 = !{!"omnipotent char", !3}66!3 = !{!"Simple C/C++ TBAA"}67