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
Merge branch 'master' into msp430
[llvm/msp430.git]
/
test
/
Transforms
/
GVNPRE
/
cast.ll
blob
3536a14571fb8f4cbe8b11396bc8123d6375039e
1
; RUN: llvm-as < %s | opt -gvnpre | llvm-dis | grep b.gvnpre
2
3
define i32 @extract() {
4
entry: ; preds = %cond_false, %entry
5
br i1 true, label %cond_true, label %cond_false
6
7
cond_true:
8
br label %end
9
10
cond_false:
11
%a = sext i16 0 to i32
12
br label %end
13
14
end:
15
%b = sext i16 0 to i32
16
ret i32 %b
17
}