blob: 123b6832f0f5b03b7375b79debc45f5d24440d7e [file] [log] [blame]
Dan Gohman18800922009-09-11 18:01:28 +00001; RUN: opt < %s -adce -disable-output
David Callahanebcf9162016-12-13 16:42:18 +00002; RUN: opt < %s -adce -adce-remove-loops -disable-output
Chris Lattner1190a4d2004-05-04 17:00:10 +00003
Tanya Lattner5640bd12008-03-01 09:15:35 +00004define void @test() {
Chris Lattner1190a4d2004-05-04 17:00:10 +00005entry:
Tanya Lattner5640bd12008-03-01 09:15:35 +00006 br label %UnifiedReturnBlock
Chris Lattner1190a4d2004-05-04 17:00:10 +00007
Tanya Lattner5640bd12008-03-01 09:15:35 +00008UnifiedReturnBlock: ; preds = %invoke_catch.0, %entry
9 ret void
Chris Lattner1190a4d2004-05-04 17:00:10 +000010
Tanya Lattner5640bd12008-03-01 09:15:35 +000011invoke_catch.0: ; No predecessors!
12 br i1 false, label %UnifiedUnwindBlock, label %UnifiedReturnBlock
Chris Lattner1190a4d2004-05-04 17:00:10 +000013
Tanya Lattner5640bd12008-03-01 09:15:35 +000014UnifiedUnwindBlock: ; preds = %invoke_catch.0
Bill Wendling4aa25732011-09-02 22:41:11 +000015 unreachable
Chris Lattner1190a4d2004-05-04 17:00:10 +000016}
Tanya Lattner5640bd12008-03-01 09:15:35 +000017