1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-01 16:33:37 +01:00
llvm-mirror/test/Transforms/SimplifyCFG/branch-fold.ll

14 lines
343 B
LLVM
Raw Normal View History

; RUN: opt < %s -simplifycfg -S | grep {br i1} | count 1
2005-09-23 20:43:57 +02:00
define void @test(i32* %P, i32* %Q, i1 %A, i1 %B) {
br i1 %A, label %a, label %b
a: ; preds = %0
br i1 %B, label %b, label %c
b: ; preds = %a, %0
store i32 123, i32* %P
ret void
c: ; preds = %a
ret void
2005-09-23 20:43:57 +02:00
}