projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Don't do (x - (y - z)) --> (x + (z - y)) on floating-point types, because
[oota-llvm.git]
/
test
/
Transforms
/
SCCP
/
select.ll
1
; RUN: llvm-as < %s | opt -sccp | llvm-dis | not grep select
2
3
define i32 @test1(i1 %C) {
4
%X = select i1 %C, i32 0, i32 0 ; <i32> [#uses=1]
5
ret i32 %X
6
}
7
8
define i32 @test2(i1 %C) {
9
%X = select i1 %C, i32 0, i32 undef ; <i32> [#uses=1]
10
ret i32 %X
11
}
12