recognize some patterns as fabs operations, so that fabs at the source level
authorChris Lattner <sabre@nondot.org>
Sat, 9 Apr 2005 05:15:53 +0000 (05:15 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 9 Apr 2005 05:15:53 +0000 (05:15 +0000)
commit59723e96987bdbfbada75fdbf1742f6a28d90d7d
tree73530ec60c3f57870f65d95fc7345d2f8b02596c
parent2e6027ccabc7c32e3bdd36b96e6e70c8f4c86fa2
recognize some patterns as fabs operations, so that fabs at the source level
is deconstructed then reconstructed here.  This catches 19 fabs's in 177.mesa
9 in 168.wupwise, 5 in 171.swim, 3 in 172.mgrid, and 14 in 173.applu out of
specfp2000.

This allows the X86 code generator to make MUCH better code than before for
each of these and saves one instr on ppc.

This depends on the previous CFE patch to expose these correctly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21171 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAG.cpp