Fix bug in updating dominance frontier after loop
[oota-llvm.git] / test / Transforms / DeadStoreElimination / 2004-11-28-LiveStoreDeleted.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | opt -dse -scalarrepl -instcombine | \
2 ; RUN:   llvm-dis | not grep {ret int undef}
3
4 int %test(double %__x) {
5         %__u = alloca { [3 x int] }
6         %tmp.1 = cast { [3 x int] }* %__u to double*
7         store double %__x, double* %tmp.1
8         %tmp.4 = getelementptr { [3 x int] }* %__u, int 0, uint 0, int 1
9         %tmp.5 = load int* %tmp.4
10         %tmp.6 = setlt int %tmp.5, 0
11         %tmp.7 = cast bool %tmp.6 to int
12         ret int %tmp.7
13 }
14