repo.or.cz
/
llvm-complete.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix bugs section.
[llvm-complete.git]
/
test
/
Analysis
/
LoadVN
/
undefined_load.ll
blob
8e4660c045d8e117f601c0f6bb0b7c0058b85537
1
; RUN: llvm-upgrade < %s | llvm-as | opt -load-vn -gcse | llvm-dis | not grep load
2
; Test that loads of undefined memory are eliminated.
3
4
int %test1() {
5
%X = malloc int
6
%Y = load int* %X
7
ret int %Y
8
}
9
int %test2() {
10
%X = alloca int
11
%Y = load int* %X
12
ret int %Y
13
}
14