diff options
author | Chris Lattner <sabre@nondot.org> | 2008-01-25 05:46:26 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-01-25 05:46:26 +0000 |
commit | 84ab724e060d55556e2be90d7eb5a7f87c2d6e91 (patch) | |
tree | 9024d9ec83cb0e1ed4de35d5452b62cfbc39f865 /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | 43eec490fbdabbfd6b4de437cfe88770872e8e1a (diff) | |
download | llvm-84ab724e060d55556e2be90d7eb5a7f87c2d6e91.zip llvm-84ab724e060d55556e2be90d7eb5a7f87c2d6e91.tar.gz llvm-84ab724e060d55556e2be90d7eb5a7f87c2d6e91.tar.bz2 |
Add target-specific dag combines for FAND(x,0) and FOR(x,0). This allows
us to compile:
double test(double X) {
return copysign(0.0, X);
}
into:
_test:
andpd LCPI1_0(%rip), %xmm0
ret
instead of:
_test:
pxor %xmm1, %xmm1
andpd LCPI1_0(%rip), %xmm1
movapd %xmm0, %xmm2
andpd LCPI1_1(%rip), %xmm2
movapd %xmm1, %xmm0
orpd %xmm2, %xmm0
ret
llvm-svn: 46344
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions