blob: a6a41fd69effe9199ab7ca7eae70994be6721426 [file] [log] [blame]
Dan Gohman3c7d3082009-09-11 18:01:28 +00001; RUN: opt < %s -adce -disable-output
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
Tanya Lattner4c4d0b82008-03-01 09:15:35 +00003define void @test() {
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004entry:
Tanya Lattner4c4d0b82008-03-01 09:15:35 +00005 br label %UnifiedReturnBlock
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006
Tanya Lattner4c4d0b82008-03-01 09:15:35 +00007UnifiedReturnBlock: ; preds = %invoke_catch.0, %entry
8 ret void
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009
Tanya Lattner4c4d0b82008-03-01 09:15:35 +000010invoke_catch.0: ; No predecessors!
11 br i1 false, label %UnifiedUnwindBlock, label %UnifiedReturnBlock
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012
Tanya Lattner4c4d0b82008-03-01 09:15:35 +000013UnifiedUnwindBlock: ; preds = %invoke_catch.0
14 unwind
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015}
Tanya Lattner4c4d0b82008-03-01 09:15:35 +000016