Teach the DAG combiner to turn chains of FADDs (x+x+x+x+...) into FMULs by constants...
authorOwen Anderson <resistor@mac.com>
Thu, 30 Aug 2012 23:35:16 +0000 (23:35 +0000)
committerOwen Anderson <resistor@mac.com>
Thu, 30 Aug 2012 23:35:16 +0000 (23:35 +0000)
commit43da6c7f13aedcc11530f9d81dbbb2ee07ad226a
tree282008d3b5a70fae56a6602b4d2afc0089bee568
parentfafa283e65bca1473eace94057077129a76dbdcc
Teach the DAG combiner to turn chains of FADDs (x+x+x+x+...) into FMULs by constants.  This is only enabled in unsafe FP math mode, since it does not preserve rounding effects for all such constants.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162956 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/fp-fast.ll [new file with mode: 0644]