brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.3 KiB · 90d0db2 Raw
72 lines · plain
1; RUN: opt < %s -passes=loop-vectorize,dce -force-vector-interleave=1 -force-vector-width=42 3; Check that we don't fall into an infinite loop.4define void @test() nounwind {5entry:6 br label %for.body7 8for.body:9 %0 = phi i32 [ 1, %entry ], [ 0, %for.body ]10 br label %for.body11}12 13 14 15define void @test2() nounwind {16entry:17 br label %for.body18 19for.body:                                         ; preds = %for.body, %entry20 %indvars.iv47 = phi i64 [ 0, %entry ], [ %indvars.iv.next48, %for.body ]21 %0 = phi i32 [ 1, %entry ], [ 0, %for.body ]22 %indvars.iv.next48 = add i64 %indvars.iv47, 123 br i1 false, label %for.end, label %for.body24 25for.end:                                          ; preds = %for.body26 unreachable27}28 29;PR1470130define void @start_model_rare(i1 %arg) nounwind uwtable ssp {31entry:32  br i1 false, label %return, label %if.end33 34if.end:                                           ; preds = %entry35  br i1 true, label %cond.false, label %cond.true36 37cond.true:                                        ; preds = %if.end38  unreachable39 40cond.false:                                       ; preds = %if.end41  br i1 true, label %cond.false28, label %cond.true2042 43cond.true20:                                      ; preds = %cond.false44  unreachable45 46cond.false28:                                     ; preds = %cond.false47  br label %for.body4048 49for.body40:                                       ; preds = %for.inc50, %cond.false2850  %indvars.iv123 = phi i64 [ 3, %cond.false28 ], [ %indvars.iv.next124, %for.inc50 ]51  %step.0121 = phi i32 [ 1, %cond.false28 ], [ %step.1, %for.inc50 ]52  br i1 %arg, label %if.then46, label %for.inc5053 54if.then46:                                        ; preds = %for.body4055  %inc47 = add nsw i32 %step.0121, 156  br label %for.inc5057 58for.inc50:                                        ; preds = %if.then46, %for.body4059  %k.1 = phi i32 [ 0, %for.body40 ], [ %inc47, %if.then46 ]60  %step.1 = phi i32 [ %step.0121, %for.body40 ], [ %inc47, %if.then46 ]61  %indvars.iv.next124 = add i64 %indvars.iv123, 162  %lftr.wideiv = trunc i64 %indvars.iv.next124 to i3263  %exitcond = icmp eq i32 %lftr.wideiv, 25664  br i1 %exitcond, label %for.end52, label %for.body4065 66for.end52:                                        ; preds = %for.inc5067  unreachable68 69return:                                           ; preds = %entry70  ret void71}72