diff options
author | Chris Lattner <sabre@nondot.org> | 2007-12-29 08:37:08 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-12-29 08:37:08 +0000 |
commit | 63079f0757785c5c461bafdd3101ee40aeb717fe (patch) | |
tree | 37d7b2cfa774bb40277cbba69dda31a00ea2d3bd /win32/lli | |
parent | 69bfbdfaeebf366b70a1aa3ba650685493da9e8c (diff) | |
download | external_llvm-63079f0757785c5c461bafdd3101ee40aeb717fe.zip external_llvm-63079f0757785c5c461bafdd3101ee40aeb717fe.tar.gz external_llvm-63079f0757785c5c461bafdd3101ee40aeb717fe.tar.bz2 |
Fold comparisons against a constant nan, and optimize ORD/UNORD
comparisons with a constant. This allows us to compile isnan to:
_foo:
fcmpu cr7, f1, f1
mfcr r2
rlwinm r3, r2, 0, 31, 31
blr
instead of:
LCPI1_0: ; float
.space 4
_foo:
lis r2, ha16(LCPI1_0)
lfs f0, lo16(LCPI1_0)(r2)
fcmpu cr7, f1, f0
mfcr r2
rlwinm r3, r2, 0, 31, 31
blr
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45405 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'win32/lli')
0 files changed, 0 insertions, 0 deletions