projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Don't promote volatile loads/stores. This is needed (for example) to handle setjmp...
[oota-llvm.git]
/
test
/
Transforms
/
Mem2Reg
/
UndefValuesMerge.ll
1
; RUN: llvm-upgrade < %s | llvm-as | opt -mem2reg | llvm-dis | not grep phi
2
3
implementation
4
5
int %testfunc(bool %C, int %i, sbyte %j) {
6
%I = alloca int
7
br bool %C, label %T, label %Cont
8
T:
9
store int %i, int* %I
10
br label %Cont
11
Cont:
12
%Y = load int* %I ;; %Y = phi %i, undef -> %Y = %i
13
ret int %Y
14
}