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

18 lines
446 B
LLVM
Raw Normal View History

2022-04-25 10:02:23 +02:00
; RUN: opt < %s -adce -disable-output
; RUN: opt < %s -adce -adce-remove-loops -disable-output
define void @test() {
entry:
br label %UnifiedReturnBlock
UnifiedReturnBlock: ; preds = %invoke_catch.0, %entry
ret void
invoke_catch.0: ; No predecessors!
br i1 false, label %UnifiedUnwindBlock, label %UnifiedReturnBlock
UnifiedUnwindBlock: ; preds = %invoke_catch.0
unreachable
}