blob: ee6ac9c65a224e6a2a3343a05eabad97950f8e22 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; In this test, a local alloca cannot alias an incoming argument.
2
3; RUN: llvm-upgrade < %s | llvm-as | opt -load-vn -gcse -instcombine | llvm-dis | not grep sub
4
5int %test(int* %P) {
6 %X = alloca int
7 %V1 = load int* %P
8 store int 0, int* %X
9 %V2 = load int* %P
10 %Diff = sub int %V1, %V2
11 ret int %Diff
12}