Update to new predicate simplifier VRP design. Fixes PR966 and PR967.
[oota-llvm.git] / test / Transforms / DeadStoreElimination / context-sensitive.llx
1 ; RUN: llvm-as < %s | opt -dse | llvm-dis | not grep DEAD
2
3 declare void %ext() 
4
5 int* %caller() {
6         %P = malloc int
7         %DEAD = load int* %P
8         %DEAD2 = add int %DEAD, 1
9         store int %DEAD2, int* %P  ;; dead store
10
11         call void %ext()         ; Can not clobber *P
12
13         store int 0, int* %P
14         ret int* %P
15 }