blob: 991e876a25b77faa16ef9883ca30909bf67cf50d [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 +00003declare void @strlen()
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004
Tanya Lattner4c4d0b82008-03-01 09:15:35 +00005declare void @_ZN10QByteArray6resizeEi()
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006
Tanya Lattner4c4d0b82008-03-01 09:15:35 +00007declare void @q_atomic_decrement()
8
9define void @_ZNK10QByteArray13leftJustifiedEicb() {
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010entry:
Tanya Lattner4c4d0b82008-03-01 09:15:35 +000011 invoke void @strlen( )
12 to label %tmp.3.i.noexc unwind label %invoke_catch.0
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013
Tanya Lattner4c4d0b82008-03-01 09:15:35 +000014tmp.3.i.noexc: ; preds = %entry
15 br i1 false, label %then.0, label %else.0
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016
Tanya Lattner4c4d0b82008-03-01 09:15:35 +000017invoke_catch.0: ; preds = %entry
18 invoke void @q_atomic_decrement( )
19 to label %tmp.1.i.i183.noexc unwind label %terminate
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020
Tanya Lattner4c4d0b82008-03-01 09:15:35 +000021tmp.1.i.i183.noexc: ; preds = %invoke_catch.0
22 unwind
Dan Gohmanf17a25c2007-07-18 16:29:46 +000023
Tanya Lattner4c4d0b82008-03-01 09:15:35 +000024then.0: ; preds = %tmp.3.i.noexc
25 invoke void @_ZN10QByteArray6resizeEi( )
26 to label %invoke_cont.1 unwind label %invoke_catch.1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027
Tanya Lattner4c4d0b82008-03-01 09:15:35 +000028invoke_catch.1: ; preds = %then.0
29 invoke void @q_atomic_decrement( )
30 to label %tmp.1.i.i162.noexc unwind label %terminate
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031
Tanya Lattner4c4d0b82008-03-01 09:15:35 +000032tmp.1.i.i162.noexc: ; preds = %invoke_catch.1
33 ret void
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034
Tanya Lattner4c4d0b82008-03-01 09:15:35 +000035invoke_cont.1: ; preds = %then.0
36 ret void
Dan Gohmanf17a25c2007-07-18 16:29:46 +000037
Tanya Lattner4c4d0b82008-03-01 09:15:35 +000038else.0: ; preds = %tmp.3.i.noexc
39 ret void
Dan Gohmanf17a25c2007-07-18 16:29:46 +000040
Tanya Lattner4c4d0b82008-03-01 09:15:35 +000041terminate: ; preds = %invoke_catch.1, %invoke_catch.0
42 %dbg.0.1 = phi { }* [ null, %invoke_catch.1 ], [ null, %invoke_catch.0 ] ; <{ }*> [#uses=0]
43 unreachable
Dan Gohmanf17a25c2007-07-18 16:29:46 +000044}
Tanya Lattner4c4d0b82008-03-01 09:15:35 +000045