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