llvm.org GIT mirror llvm / 4acd51a
New testcase where loop simplify is not updating domfrontiers correctly git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12889 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 15 years ago
1 changed file(s) with 22 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | opt -scalarrepl -loopsimplify -licm -disable-output
1
2 implementation ; Functions:
3
4 void %inflate() {
5 entry:
6 br label %loopentry.0.outer1111
7
8 loopentry.0.outer1111: ; preds = %entry, %loopentry.0.outer1111, %label.11, %then.41
9 %left.0.ph1107 = phi uint [ %tmp.1172, %then.41 ], [ 0, %entry ], [ %tmp.1172, %label.11 ], [ %left.0.ph1107, %loopentry.0.outer1111 ] ; [#uses=2]
10 %tmp.1172 = sub uint %left.0.ph1107, 0 ; [#uses=2]
11 switch uint 0, label %label.11 [
12 uint 23, label %loopentry.0.outer1111
13 uint 13, label %then.41
14 ]
15
16 label.11: ; preds = %loopentry.0.outer1111
17 br label %loopentry.0.outer1111
18
19 then.41: ; preds = %loopentry.0.outer1111
20 br label %loopentry.0.outer1111
21 }