2011-11-26 16:24:25 +08:00
|
|
|
; RUN: opt < %s -simplifycfg -S | FileCheck %s
|
2005-09-24 02:43:57 +08:00
|
|
|
|
2008-03-18 11:45:45 +08:00
|
|
|
define void @test(i32* %P, i32* %Q, i1 %A, i1 %B) {
|
2011-11-26 16:24:25 +08:00
|
|
|
; CHECK: test
|
|
|
|
; CHECK: br i1
|
|
|
|
; CHECK-NOT: br i1
|
|
|
|
; CHECK: ret
|
|
|
|
; CHECK: ret
|
|
|
|
|
|
|
|
entry:
|
2008-03-18 11:45:45 +08:00
|
|
|
br i1 %A, label %a, label %b
|
2011-11-26 16:24:25 +08:00
|
|
|
a:
|
2008-03-18 11:45:45 +08:00
|
|
|
br i1 %B, label %b, label %c
|
2011-11-26 16:24:25 +08:00
|
|
|
b:
|
2008-03-18 11:45:45 +08:00
|
|
|
store i32 123, i32* %P
|
|
|
|
ret void
|
2011-11-26 16:24:25 +08:00
|
|
|
c:
|
2008-03-18 11:45:45 +08:00
|
|
|
ret void
|
2005-09-24 02:43:57 +08:00
|
|
|
}
|