llvm.org GIT mirror llvm / release_29 test / Transforms / SimplifyCFG / return-merge.ll
release_29

Tree @release_29 (Download .tar.gz)

return-merge.ll @release_29raw · history · blame

; 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
}