1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-30 15:32:52 +01:00
llvm-mirror/test/Regression/Analysis/DSGraph/2004-03-10-NoElimLoad.ll
Misha Brukman e0c28773b4 Test the mod/ref analysis in DSA.
llvm-svn: 12333
2004-03-12 06:17:22 +00:00

15 lines
266 B
LLVM

; RUN: llvm-as < %s | opt -ds-aa -load-vn -gcse -instcombine | llvm-dis | grep sub
void %bar(int* %p) {
store int 15, int* %p
ret void
}
int %foo(int* %a) {
%b = load int* %a
call void %bar(int* %a)
%d = load int* %a
%e = sub int %b, %d
ret int %e
}