llvm.org GIT mirror llvm / b95df12
Add a test for the duplicated-conditional situation illutrated by PR5652. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112621 91177308-0d34-0410-b5e6-96231b3b80d8 Owen Anderson 9 years ago
1 changed file(s) with 24 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
451451 ret i32 1
452452 }
453453
454 ; PR5652
455 ; CHECK: @test15
456 define i32 @test15(i32 %len) {
457 entry:
458 ; CHECK: icmp ult i32 %len, 13
459 %tmp = icmp ult i32 %len, 13
460 br i1 %tmp, label %check, label %exit0
461
462 exit0:
463 ret i32 0
464
465 check:
466 %tmp9 = icmp ult i32 %len, 21
467 br i1 %tmp9, label %exit1, label %exit2
468
469 exit2:
470 ; CHECK-NOT: ret i32 2
471 ret i32 2
472
473 exit1:
474 ret i32 1
475 ; CHECK: }
476 }
477