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
This commit is contained in:
Owen Anderson 2010-08-31 18:49:12 +00:00
parent c1bdac66ff
commit b95df124b2

View File

@ -452,3 +452,27 @@ right_ret:
ret i32 1
}
; PR5652
; CHECK: @test15
define i32 @test15(i32 %len) {
entry:
; CHECK: icmp ult i32 %len, 13
%tmp = icmp ult i32 %len, 13
br i1 %tmp, label %check, label %exit0
exit0:
ret i32 0
check:
%tmp9 = icmp ult i32 %len, 21
br i1 %tmp9, label %exit1, label %exit2
exit2:
; CHECK-NOT: ret i32 2
ret i32 2
exit1:
ret i32 1
; CHECK: }
}