2009-09-11 20:01:28 +02:00
|
|
|
; RUN: opt < %s -simplifycfg -disable-output
|
2004-12-10 18:41:43 +01:00
|
|
|
|
2008-03-10 08:21:50 +01:00
|
|
|
define void @symhash_add() {
|
2004-12-10 18:41:43 +01:00
|
|
|
entry:
|
2008-03-10 08:21:50 +01:00
|
|
|
br i1 undef, label %then.0, label %UnifiedReturnBlock
|
2004-12-10 18:41:43 +01:00
|
|
|
then.0: ; preds = %entry
|
2008-03-10 08:21:50 +01:00
|
|
|
br i1 undef, label %loopentry.2, label %loopentry.1.preheader
|
2004-12-10 18:41:43 +01:00
|
|
|
loopentry.1.preheader: ; preds = %then.0
|
|
|
|
br label %loopentry.1.outer
|
2008-03-10 08:21:50 +01:00
|
|
|
loopentry.1.outer: ; preds = %loopexit.1, %loopentry.1.preheader
|
2004-12-10 18:41:43 +01:00
|
|
|
br label %loopentry.1
|
2008-03-10 08:21:50 +01:00
|
|
|
loopentry.1: ; preds = %endif.1, %then.4, %then.3, %then.1, %loopentry.1.outer
|
|
|
|
br i1 undef, label %loopexit.1, label %no_exit.1
|
2004-12-10 18:41:43 +01:00
|
|
|
no_exit.1: ; preds = %loopentry.1
|
2008-03-10 08:21:50 +01:00
|
|
|
br i1 undef, label %then.1, label %else.0
|
2004-12-10 18:41:43 +01:00
|
|
|
then.1: ; preds = %no_exit.1
|
|
|
|
br label %loopentry.1
|
|
|
|
else.0: ; preds = %no_exit.1
|
2008-03-10 08:21:50 +01:00
|
|
|
br i1 undef, label %then.2, label %else.1
|
2004-12-10 18:41:43 +01:00
|
|
|
then.2: ; preds = %else.0
|
2008-03-10 08:21:50 +01:00
|
|
|
br i1 undef, label %then.3, label %endif.1
|
2004-12-10 18:41:43 +01:00
|
|
|
then.3: ; preds = %then.2
|
|
|
|
br label %loopentry.1
|
|
|
|
else.1: ; preds = %else.0
|
2008-03-10 08:21:50 +01:00
|
|
|
br i1 undef, label %endif.1, label %then.4
|
2004-12-10 18:41:43 +01:00
|
|
|
then.4: ; preds = %else.1
|
|
|
|
br label %loopentry.1
|
2008-03-10 08:21:50 +01:00
|
|
|
endif.1: ; preds = %else.1, %then.2
|
2004-12-10 18:41:43 +01:00
|
|
|
br label %loopentry.1
|
|
|
|
loopexit.1: ; preds = %loopentry.1
|
2008-03-10 08:21:50 +01:00
|
|
|
br i1 undef, label %loopentry.1.outer, label %loopentry.2
|
|
|
|
loopentry.2: ; preds = %no_exit.2, %loopexit.1, %then.0
|
|
|
|
br i1 undef, label %loopexit.2, label %no_exit.2
|
2004-12-10 18:41:43 +01:00
|
|
|
no_exit.2: ; preds = %loopentry.2
|
|
|
|
br label %loopentry.2
|
|
|
|
loopexit.2: ; preds = %loopentry.2
|
|
|
|
ret void
|
|
|
|
UnifiedReturnBlock: ; preds = %entry
|
|
|
|
ret void
|
|
|
|
}
|