[DAGCombiner] Generalize FADD constant combines to work with vectors
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 3 Oct 2015 22:06:06 +0000 (22:06 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 3 Oct 2015 22:06:06 +0000 (22:06 +0000)
commitf36dfdfd267d59ed8ab9b301d85352f39e0bcc80
treef463dfe6a48cb1e71b1fcce30ddab1c038962861
parent4fbecfeb5a0ea61fdc2889b76f76c80c56a34c2f
[DAGCombiner] Generalize FADD constant combines to work with vectors

Updated the FADD combines to work with vectors as well as scalars.

Differential Revision: http://reviews.llvm.org/D13416

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249251 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/fadd-combines.ll
test/CodeGen/X86/fmul-combines.ll