Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
llvm
/
d901b6640e0f1d1757a2db9fb57a140ad828ea75
/
.
/
test
/
Transforms
/
Mem2Reg
/
2002-03-28-UninitializedVal.ll
blob: 1c881b95156d83f24b87f89a30cdc46c742dfc9d [
file
] [
log
] [
blame
]
; Uninitialized values are not handled correctly.
;
; RUN: llvm-as < %s | opt -mem2reg
;
define
i32
@test
()
{
; To be promoted
%X
=
alloca
i32
; <i32*> [#uses=1]
%Y
=
load
i32
*
%X
; <i32> [#uses=1]
ret
i32
%Y
}