Update to new predicate simplifier VRP design. Fixes PR966 and PR967.
[oota-llvm.git] / test / Transforms / DeadStoreElimination / 2004-12-28-PartialStore.ll
1 ; RUN: llvm-as < %s | opt -dse | llvm-dis | grep 'store int 1234567'
2
3 ; Do not delete stores that are only partially killed.
4
5 int %test() {
6         %V = alloca int
7         store int 1234567, int* %V
8         %V2 = cast int* %V to sbyte*
9         store sbyte 0, sbyte* %V2
10         %X = load int* %V
11         ret int %X
12 }