repo.or.cz
/
llvm
/
msp430.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Now that PR2957 is resolved, remove a bunch of
[llvm/msp430.git]
/
test
/
Transforms
/
GVN
/
lpre-basic.ll
blob
5b52863b1c8d729c8dd4d4d442f971771167a21d
1
; RUN: llvm-as < %s | opt -gvn -enable-load-pre | llvm-dis | grep {%PRE = phi}
2
3
define i32 @test(i32* %p, i1 %C) {
4
block1:
5
br i1 %C, label %block2, label %block3
6
7
block2:
8
br label %block4
9
10
block3:
11
%b = bitcast i32 0 to i32
12
store i32 %b, i32* %p
13
br label %block4
14
15
block4:
16
%PRE = load i32* %p
17
ret i32 %PRE
18
}