OSDN Git Service

Optimize FSEL a bit for fneg arguments. This fixes the recently added test
authorNate Begeman <natebegeman@mac.com>
Sat, 9 Apr 2005 09:33:07 +0000 (09:33 +0000)
committerNate Begeman <natebegeman@mac.com>
Sat, 9 Apr 2005 09:33:07 +0000 (09:33 +0000)
commitaf4ab1b103b1e67d5893f3a53751ee8568d7d486
tree731d6b60618e64150625f531cd0efcccceee4672
parent9a98a774463a019a212c40df74e548227e1c1b2d
Optimize FSEL a bit for fneg arguments.  This fixes the recently added test
case so that we emit

_test_fneg_sel:
.LBB_test_fneg_sel_0:   ;
        fsel f1, f1, f3, f2
        blr

instead of:

_test_fneg_sel:
.LBB_test_fneg_sel_0:   ;
        fneg f0, f1
        fneg f0, f0
        fsel f1, f0, f3, f2
        blr

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21177 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelPattern.cpp