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