Home | History | Annotate | Download | only in ADCE
      1 ; RUN: opt < %s -adce -disable-output
      2 
      3 define void @test() {
      4         br i1 false, label %then, label %endif
      5 
      6 then:           ; preds = %0
      7         invoke void null( i8* null )
      8                         to label %invoke_cont unwind label %invoke_catch
      9 
     10 invoke_catch:           ; preds = %then
     11         %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
     12                  cleanup
     13         resume { i8*, i32 } %exn
     14 
     15 invoke_cont:            ; preds = %then
     16         ret void
     17 
     18 endif:          ; preds = %0
     19         ret void
     20 }
     21 
     22 declare i32 @__gxx_personality_v0(...)
     23