llvm-project/llvm/test/Transforms/ADCE/2004-05-04-UnreachableBlock.ll

17 lines
384 B
LLVM
Raw Normal View History

; RUN: opt < %s -adce -disable-output
2004-05-05 01:00:10 +08:00
define void @test() {
2004-05-05 01:00:10 +08:00
entry:
br label %UnifiedReturnBlock
2004-05-05 01:00:10 +08:00
UnifiedReturnBlock: ; preds = %invoke_catch.0, %entry
ret void
2004-05-05 01:00:10 +08:00
invoke_catch.0: ; No predecessors!
br i1 false, label %UnifiedUnwindBlock, label %UnifiedReturnBlock
2004-05-05 01:00:10 +08:00
UnifiedUnwindBlock: ; preds = %invoke_catch.0
unwind
2004-05-05 01:00:10 +08:00
}