mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-01 04:29:57 +00:00
is sabre. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81528 91177308-0d34-0410-b5e6-96231b3b80d8
20 lines
383 B
LLVM
20 lines
383 B
LLVM
; RUN: opt < %s -simplifycfg -S | not grep br
|
|
|
|
define i32 @test1(i1 %C) {
|
|
entry:
|
|
br i1 %C, label %T, label %F
|
|
T: ; preds = %entry
|
|
ret i32 1
|
|
F: ; preds = %entry
|
|
ret i32 0
|
|
}
|
|
|
|
define void @test2(i1 %C) {
|
|
br i1 %C, label %T, label %F
|
|
T: ; preds = %0
|
|
ret void
|
|
F: ; preds = %0
|
|
ret void
|
|
}
|
|
|