brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 5328527 Raw
38 lines · plain
1; RUN: opt < %s -passes=simple-loop-unswitch -disable-output2 3; PR382834; PR387375declare void @func_1()6 7define void @func_9(i32 signext %arg) {8bb:9  br label %bb510bb5:                                              ; preds = %bb24, %bb11  %tmp3.0 = phi i32 [ undef, %bb ], [ %tmp29, %bb24 ]12  %tmp11 = icmp eq i32 %arg, 013  %tmp15 = icmp eq i32 %tmp3.0, 014  %spec.select = select i1 %tmp15, i32 0, i32 4915  %tmp1.2 = select i1 %tmp11, i32 %spec.select, i32 916  %trunc = trunc i32 %tmp1.2 to i617  br label %bb918 19bb9:                                              ; preds = %bb5, %bb1920  %tmp2.03 = phi i32 [ 0, %bb5 ], [ %tmp21, %bb19 ]21  switch i6 %trunc, label %bb24 [22    i6 0, label %bb1923    i6 -15, label %bb2224  ]25 26bb19:                                             ; preds = %bb927  %tmp21 = add nuw nsw i32 %tmp2.03, 128  %tmp8 = icmp eq i32 %tmp21, 2529  br i1 %tmp8, label %bb22, label %bb930 31bb22:                                             ; preds = %bb19, %bb932  unreachable33 34bb24:                                             ; preds = %bb935  %tmp29 = or i32 %tmp3.0, 136  br label %bb537}38