Sign in
llvm
/
llvm
/
refs/heads/release_16
/
.
/
test
/
Analysis
/
DSGraph
/
2004-03-10-ElimLoad.ll
blob: 1ae0a48a84385f1eda3b261fd2dfaf46a2c71bd8 [
file
] [
log
] [
blame
]
; RUN: llvm-as < %s | opt -ds-aa -load-vn -gcse -instcombine | llvm-dis | not grep sub
void
%bar
(
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
}