Move these tests to use FastDSE instead of old DSE.
[oota-llvm.git] / test / Transforms / DeadStoreElimination / PartialStore.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | opt -fdse | llvm-dis | \
2 ; RUN:    not grep {store sbyte}
3 ; Ensure that the dead store is deleted in this case.  It is wholely
4 ; overwritten by the second store.
5 int %test() {
6         %V = alloca int
7         %V2 = cast int* %V to sbyte*
8         store sbyte 0, sbyte* %V2
9         store int 1234567, int* %V
10         %X = load int* %V
11         ret int %X
12 }