repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git]
/
llvm
/
test
/
Transforms
/
InstCombine
/
2008-01-27-FloatSelect.ll
blob
6b4e89dbbe6051ec1903f3a15882c7c964ca263d
1
; RUN: opt < %s -instcombine -S | FileCheck %s
2
; CHECK: select
3
4
define double @fold(i1 %a, double %b) {
5
%s = select i1 %a, double 0., double 1.
6
%c = fdiv double %b, %s
7
ret double %c
8
}