Fix bug in updating dominance frontier after loop
[oota-llvm.git] / test / Transforms / IndVarsSimplify / 2005-11-18-Crash.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | opt -indvars -disable-output
2
3 %fixtab = external global [29 x [29 x [2 x uint]]]              ; <[29 x [29 x [2 x uint]]]*> [#uses=1]
4
5 implementation   ; Functions:
6
7 void %init_optabs() {
8 entry:
9         br label %no_exit.0
10
11 no_exit.0:              ; preds = %no_exit.0, %entry
12         %p.0.0 = phi uint* [ getelementptr ([29 x [29 x [2 x uint]]]* %fixtab, int 0, int 0, int 0, int 0), %entry ], [ %inc.0, %no_exit.0 ]            ; <uint*> [#uses=1]
13         %inc.0 = getelementptr uint* %p.0.0, int 1              ; <uint*> [#uses=1]
14         br bool false, label %no_exit.0, label %no_exit.1
15
16 no_exit.1:              ; preds = %no_exit.0
17         ret void
18 }