1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -passes=jump-threading -S %s | FileCheck %s
6 define hidden void @hoge(i1 %c1, i32 %x) {
9 ; CHECK-NEXT: br label [[BB13:%.*]]
11 ; CHECK-NEXT: [[TMP3:%.*]] = icmp ne i32 [[TMP7:%.*]], undef
12 ; CHECK-NEXT: br i1 [[TMP3]], label [[BB5:%.*]], label [[BB13]]
14 ; CHECK-NEXT: br label [[BB6:%.*]]
16 ; CHECK-NEXT: [[TMP7]] = phi i32 [ [[TMP7]], [[BB5]] ], [ [[X:%.*]], [[BB8:%.*]] ]
17 ; CHECK-NEXT: [[C:%.*]] = call i1 @cond()
18 ; CHECK-NEXT: br i1 [[C]], label [[BB4:%.*]], label [[BB8]]
20 ; CHECK-NEXT: br label [[BB6]]
22 ; CHECK-NEXT: ret void
25 br i1 false, label %bb1, label %bb13
30 bb2: ; preds = %bb12, %bb1
31 %tmp = phi i32 [ 10, %bb1 ], [ %tmp7, %bb12 ]
32 %tmp3 = icmp ne i32 %tmp, undef
36 br i1 %tmp3, label %bb5, label %bb13
41 bb6: ; preds = %bb8, %bb5
42 %tmp7 = phi i32 [ %tmp, %bb5 ], [ %x, %bb8 ]
44 br i1 %c, label %bb9, label %bb8