a couple of miscellaneous things.

llvm-svn: 26625
This commit is contained in:
Chris Lattner 2006-03-09 01:39:46 +00:00
parent fdb533a1f6
commit 920e661e50
1 changed files with 18 additions and 0 deletions

View File

@ -566,3 +566,21 @@ LBB_foo_3: # no_exit
jb LBB_foo_3 # no_exit
//===---------------------------------------------------------------------===//
Codegen:
if (copysign(1.0, x) == copysign(1.0, y))
into:
if (x^y & mask)
when using SSE.
//===---------------------------------------------------------------------===//
Optimize this into something reasonable:
x * copysign(1.0, y) * copysign(1.0, z)
//===---------------------------------------------------------------------===//
Optimize copysign(x, *y) to use an integer load from y.
//===---------------------------------------------------------------------===//