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 | 3b6a82118b1e06be54016a8c09a5207ec5148e6c (patch) | |
tree | 95f8ab246d83c733f660d39053c7af9c721da7da /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 33de0c6e92e36f3ea25122d1b304f8658c7b7852 (diff) | |
download | bcm5719-llvm-3b6a82118b1e06be54016a8c09a5207ec5148e6c.tar.gz bcm5719-llvm-3b6a82118b1e06be54016a8c09a5207ec5148e6c.zip |
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
llvm-svn: 45405
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions