Remove use of implementation keyword.
[oota-llvm.git] / test / Analysis / BasicAA / 2004-01-29-InvariantMemory.llx
1 ; RUN: llvm-as < %s | opt -load-vn -gcse -instcombine | llvm-dis | not grep load
2
3 %X = constant [2 x int] [int 4, int 5]
4
5 int %test(int* %Y, long %idx) {
6         %P = getelementptr [2 x int]* %X, long 0, long %idx
7         %A = load int* %P      ; Load from invariant memory
8         store int 4, int* %Y   ; Store could not be to %X
9         %B = load int* %P
10         %C = sub int %A, %B
11         ret int %C
12 }