2009-09-11 18:01:28 +00:00
|
|
|
; RUN: opt < %s -loop-extract-single -disable-output
|
2004-03-14 22:16:52 +00:00
|
|
|
|
2008-03-01 09:15:35 +00:00
|
|
|
define void @ab() {
|
2004-03-14 22:16:52 +00:00
|
|
|
entry:
|
2008-03-01 09:15:35 +00:00
|
|
|
br label %codeReplTail
|
2004-03-14 22:16:52 +00:00
|
|
|
|
2008-03-01 09:15:35 +00:00
|
|
|
then.1: ; preds = %codeReplTail
|
|
|
|
br label %loopentry.1
|
2004-03-14 22:16:52 +00:00
|
|
|
|
2008-03-01 09:15:35 +00:00
|
|
|
loopentry.1: ; preds = %no_exit.1, %then.1
|
|
|
|
br i1 false, label %no_exit.1, label %loopexit.0.loopexit1
|
2004-03-14 22:16:52 +00:00
|
|
|
|
2008-03-01 09:15:35 +00:00
|
|
|
no_exit.1: ; preds = %loopentry.1
|
|
|
|
br label %loopentry.1
|
2004-03-14 22:16:52 +00:00
|
|
|
|
2008-03-01 09:15:35 +00:00
|
|
|
loopexit.0.loopexit: ; preds = %codeReplTail
|
|
|
|
ret void
|
2004-03-14 22:16:52 +00:00
|
|
|
|
2008-03-01 09:15:35 +00:00
|
|
|
loopexit.0.loopexit1: ; preds = %loopentry.1
|
|
|
|
ret void
|
2004-03-14 22:16:52 +00:00
|
|
|
|
2008-03-01 09:15:35 +00:00
|
|
|
codeReplTail: ; preds = %codeReplTail, %entry
|
|
|
|
switch i16 0, label %codeReplTail [
|
|
|
|
i16 0, label %loopexit.0.loopexit
|
|
|
|
i16 1, label %then.1
|
|
|
|
]
|
2004-03-14 22:16:52 +00:00
|
|
|
}
|
2008-03-01 09:15:35 +00:00
|
|
|
|