2009-09-11 19:02:12 +02:00
|
|
|
; RUN: opt < %s -simplifycfg -S | not grep br
|
2005-05-09 23:21:10 +02:00
|
|
|
|
2008-03-18 04:45:45 +01:00
|
|
|
declare void @bar(i32)
|
|
|
|
|
|
|
|
define void @test(i1 %P, i32* %Q) {
|
|
|
|
br i1 %P, label %T, label %F
|
|
|
|
T: ; preds = %0
|
|
|
|
store i32 1, i32* %Q
|
2015-02-27 22:17:42 +01:00
|
|
|
%A = load i32, i32* %Q ; <i32> [#uses=1]
|
2008-03-18 04:45:45 +01:00
|
|
|
call void @bar( i32 %A )
|
|
|
|
ret void
|
|
|
|
F: ; preds = %0
|
|
|
|
store i32 1, i32* %Q
|
2015-02-27 22:17:42 +01:00
|
|
|
%B = load i32, i32* %Q ; <i32> [#uses=1]
|
2008-03-18 04:45:45 +01:00
|
|
|
call void @bar( i32 %B )
|
|
|
|
ret void
|
2005-05-09 23:21:10 +02:00
|
|
|
}
|
|
|
|
|