Dan Gohman | f2f6ce6 | 2009-09-11 18:01:28 +0000 | [diff] [blame] | 1 | ; RUN: opt < %s -indvars -disable-output |
Chris Lattner | 491a1b8 | 2005-02-17 16:53:41 +0000 | [diff] [blame] | 2 | |
Tanya Lattner | ec9a35a | 2008-03-01 09:15:35 +0000 | [diff] [blame] | 3 | declare void @q_atomic_increment() |
Chris Lattner | 491a1b8 | 2005-02-17 16:53:41 +0000 | [diff] [blame] | 4 | |
Tanya Lattner | ec9a35a | 2008-03-01 09:15:35 +0000 | [diff] [blame] | 5 | declare void @_Z9qt_assertPKcS0_i() |
Chris Lattner | 491a1b8 | 2005-02-17 16:53:41 +0000 | [diff] [blame] | 6 | |
Tanya Lattner | ec9a35a | 2008-03-01 09:15:35 +0000 | [diff] [blame] | 7 | define void @_ZN13QMetaResourceC1EPKh() { |
Chris Lattner | 491a1b8 | 2005-02-17 16:53:41 +0000 | [diff] [blame] | 8 | entry: |
Tanya Lattner | ec9a35a | 2008-03-01 09:15:35 +0000 | [diff] [blame] | 9 | invoke void @_Z9qt_assertPKcS0_i( ) |
Chris Lattner | 491a1b8 | 2005-02-17 16:53:41 +0000 | [diff] [blame] | 10 | to label %endif.1 unwind label %then.i.i551 |
| 11 | |
| 12 | then.i.i551: ; preds = %entry |
Bill Wendling | 15db556 | 2011-09-01 01:02:41 +0000 | [diff] [blame] | 13 | %exn551 = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0 |
| 14 | cleanup |
Chris Lattner | 491a1b8 | 2005-02-17 16:53:41 +0000 | [diff] [blame] | 15 | ret void |
| 16 | |
| 17 | endif.1: ; preds = %entry |
Tanya Lattner | ec9a35a | 2008-03-01 09:15:35 +0000 | [diff] [blame] | 18 | br i1 false, label %then.2, label %then.i.i |
Chris Lattner | 491a1b8 | 2005-02-17 16:53:41 +0000 | [diff] [blame] | 19 | |
| 20 | then.2: ; preds = %endif.1 |
Tanya Lattner | ec9a35a | 2008-03-01 09:15:35 +0000 | [diff] [blame] | 21 | invoke void @q_atomic_increment( ) |
Chris Lattner | 491a1b8 | 2005-02-17 16:53:41 +0000 | [diff] [blame] | 22 | to label %loopentry.0 unwind label %invoke_catch.6 |
| 23 | |
| 24 | invoke_catch.6: ; preds = %then.2 |
Bill Wendling | 15db556 | 2011-09-01 01:02:41 +0000 | [diff] [blame] | 25 | %exn6 = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0 |
| 26 | cleanup |
Chris Lattner | 491a1b8 | 2005-02-17 16:53:41 +0000 | [diff] [blame] | 27 | ret void |
| 28 | |
| 29 | loopentry.0: ; preds = %then.2 |
Tanya Lattner | ec9a35a | 2008-03-01 09:15:35 +0000 | [diff] [blame] | 30 | br i1 false, label %shortcirc_next.i, label %endif.3 |
Chris Lattner | 491a1b8 | 2005-02-17 16:53:41 +0000 | [diff] [blame] | 31 | |
| 32 | endif.3: ; preds = %loopentry.0 |
| 33 | ret void |
| 34 | |
| 35 | shortcirc_next.i: ; preds = %loopentry.0 |
Tanya Lattner | ec9a35a | 2008-03-01 09:15:35 +0000 | [diff] [blame] | 36 | br i1 false, label %_ZNK7QString2atEi.exit, label %then.i |
Chris Lattner | 491a1b8 | 2005-02-17 16:53:41 +0000 | [diff] [blame] | 37 | |
| 38 | then.i: ; preds = %shortcirc_next.i |
| 39 | ret void |
| 40 | |
| 41 | _ZNK7QString2atEi.exit: ; preds = %shortcirc_next.i |
Tanya Lattner | ec9a35a | 2008-03-01 09:15:35 +0000 | [diff] [blame] | 42 | br i1 false, label %endif.4, label %then.4 |
Chris Lattner | 491a1b8 | 2005-02-17 16:53:41 +0000 | [diff] [blame] | 43 | |
| 44 | then.4: ; preds = %_ZNK7QString2atEi.exit |
| 45 | ret void |
| 46 | |
| 47 | endif.4: ; preds = %_ZNK7QString2atEi.exit |
Tanya Lattner | ec9a35a | 2008-03-01 09:15:35 +0000 | [diff] [blame] | 48 | %tmp.115 = load i8* null ; <i8> [#uses=1] |
| 49 | br i1 false, label %loopexit.1, label %no_exit.0 |
Chris Lattner | 491a1b8 | 2005-02-17 16:53:41 +0000 | [diff] [blame] | 50 | |
| 51 | no_exit.0: ; preds = %no_exit.0, %endif.4 |
Tanya Lattner | ec9a35a | 2008-03-01 09:15:35 +0000 | [diff] [blame] | 52 | %bytes_in_len.4.5 = phi i8 [ %dec, %no_exit.0 ], [ %tmp.115, %endif.4 ] ; <i8> [#uses=1] |
| 53 | %off.5.5.in = phi i32 [ %off.5.5, %no_exit.0 ], [ 0, %endif.4 ] ; <i32> [#uses=1] |
| 54 | %off.5.5 = add i32 %off.5.5.in, 1 ; <i32> [#uses=2] |
| 55 | %dec = add i8 %bytes_in_len.4.5, -1 ; <i8> [#uses=2] |
| 56 | %tmp.123631 = icmp eq i8 %dec, 0 ; <i1> [#uses=1] |
| 57 | br i1 %tmp.123631, label %loopexit.1, label %no_exit.0 |
Chris Lattner | 491a1b8 | 2005-02-17 16:53:41 +0000 | [diff] [blame] | 58 | |
| 59 | loopexit.1: ; preds = %no_exit.0, %endif.4 |
Tanya Lattner | ec9a35a | 2008-03-01 09:15:35 +0000 | [diff] [blame] | 60 | %off.5.in.6 = phi i32 [ 0, %endif.4 ], [ %off.5.5, %no_exit.0 ] ; <i32> [#uses=0] |
Chris Lattner | 491a1b8 | 2005-02-17 16:53:41 +0000 | [diff] [blame] | 61 | ret void |
| 62 | |
| 63 | then.i.i: ; preds = %endif.1 |
| 64 | ret void |
| 65 | } |
Bill Wendling | 15db556 | 2011-09-01 01:02:41 +0000 | [diff] [blame] | 66 | |
| 67 | declare i32 @__gxx_personality_v0(...) |