Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
llvm
/
c0f376dba2b51aacf06cfefbc1c46120bb8b725d
/
.
/
test
/
Analysis
/
LoadVN
/
RLE-Preserve-Volatile.ll
blob: c320bc3eeaca08656292f3385f37634bcce03a93 [
file
] [
log
] [
blame
]
; RUN: llvm-as < %s | opt -load-vn -gcse -instcombine | llvm-dis | grep sub
int
%test
(
int
*
%P
)
{
%X
=
volatile
load
int
*
%P
%Y
=
volatile
load
int
*
%P
%Z
=
sub
int
%X
,
%Y
ret
int
%Z
}