blob: fafe73b2b4efeefa42603ebdc9fe6d4fdc26290c [file] [log] [blame]
Dan Gohman3c7d3082009-09-11 18:01:28 +00001; RUN: opt < %s -simplifycfg -disable-output
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
Tanya Lattner003eae52008-03-10 07:21:50 +00003define void @symhash_add() {
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004entry:
Tanya Lattner003eae52008-03-10 07:21:50 +00005 br i1 undef, label %then.0, label %UnifiedReturnBlock
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006then.0: ; preds = %entry
Tanya Lattner003eae52008-03-10 07:21:50 +00007 br i1 undef, label %loopentry.2, label %loopentry.1.preheader
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008loopentry.1.preheader: ; preds = %then.0
9 br label %loopentry.1.outer
Tanya Lattner003eae52008-03-10 07:21:50 +000010loopentry.1.outer: ; preds = %loopexit.1, %loopentry.1.preheader
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011 br label %loopentry.1
Tanya Lattner003eae52008-03-10 07:21:50 +000012loopentry.1: ; preds = %endif.1, %then.4, %then.3, %then.1, %loopentry.1.outer
13 br i1 undef, label %loopexit.1, label %no_exit.1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014no_exit.1: ; preds = %loopentry.1
Tanya Lattner003eae52008-03-10 07:21:50 +000015 br i1 undef, label %then.1, label %else.0
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016then.1: ; preds = %no_exit.1
17 br label %loopentry.1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018else.0: ; preds = %no_exit.1
Tanya Lattner003eae52008-03-10 07:21:50 +000019 br i1 undef, label %then.2, label %else.1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020then.2: ; preds = %else.0
Tanya Lattner003eae52008-03-10 07:21:50 +000021 br i1 undef, label %then.3, label %endif.1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022then.3: ; preds = %then.2
23 br label %loopentry.1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024else.1: ; preds = %else.0
Tanya Lattner003eae52008-03-10 07:21:50 +000025 br i1 undef, label %endif.1, label %then.4
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026then.4: ; preds = %else.1
27 br label %loopentry.1
Tanya Lattner003eae52008-03-10 07:21:50 +000028endif.1: ; preds = %else.1, %then.2
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029 br label %loopentry.1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030loopexit.1: ; preds = %loopentry.1
Tanya Lattner003eae52008-03-10 07:21:50 +000031 br i1 undef, label %loopentry.1.outer, label %loopentry.2
32loopentry.2: ; preds = %no_exit.2, %loopexit.1, %then.0
33 br i1 undef, label %loopexit.2, label %no_exit.2
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034no_exit.2: ; preds = %loopentry.2
35 br label %loopentry.2
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036loopexit.2: ; preds = %loopentry.2
37 ret void
Dan Gohmanf17a25c2007-07-18 16:29:46 +000038UnifiedReturnBlock: ; preds = %entry
39 ret void
40}