llvm.org GIT mirror llvm / 3b04a7a
New testcase that crashes the loop extractor git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12399 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 15 years ago
1 changed file(s) with 27 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | opt -loop-extract-single -disable-output
1
2 void %ab() {
3 entry:
4 br label %codeReplTail
5
6 then.1: ; preds = %codeReplTail
7 br label %loopentry.1
8
9 loopentry.1: ; preds = %loopentry.1.preheader, %no_exit.1
10 br bool false, label %no_exit.1, label %loopexit.0.loopexit1
11
12 no_exit.1: ; preds = %loopentry.1
13 br label %loopentry.1
14
15 loopexit.0.loopexit: ; preds = %codeReplTail
16 ret void
17
18 loopexit.0.loopexit1: ; preds = %loopentry.1
19 ret void
20
21 codeReplTail: ; preds = %codeRepl, %codeReplTail
22 switch ushort 0, label %codeReplTail [
23 ushort 0, label %loopexit.0.loopexit
24 ushort 1, label %then.1
25 ]
26 }