repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[rtsan] Add fork/execve interceptors (#117198)
[llvm-project.git]
/
llvm
/
test
/
Transforms
/
Mem2Reg
/
2002-03-28-UninitializedVal.ll
blob
fe2d69c6f9422d2e6ffcbc1090a635fd77d6daa7
1
; Uninitialized values are not handled correctly.
2
;
3
; RUN: opt < %s -passes=mem2reg -disable-output
4
;
5
6
define i32 @test() {
7
; To be promoted
8
%X = alloca i32 ; <ptr> [#uses=1]
9
%Y = load i32, ptr %X ; <i32> [#uses=1]
10
ret i32 %Y
11
}