[X86] Implement the fusing of MUL+SUBADD to FMSUBADD
authorCraig Topper <craig.topper@intel.com>
Wed, 20 Dec 2017 18:05:15 +0000 (18:05 +0000)
committerCraig Topper <craig.topper@intel.com>
Wed, 20 Dec 2017 18:05:15 +0000 (18:05 +0000)
commitbc92e00f2e685cb2071c3d7aa6cf68b7f1037145
treefcb4652d631adac1764cefb4a1ffcf0249d53cfd
parentefb483f63af176272291deffde6b41a2fc8c1769
[X86] Implement the fusing of MUL+SUBADD to FMSUBADD

This patch turns shuffles of fadd/fsub with fmul into fmsubadd.

Patch by Dmitry Venikov

Differential Revision: https://reviews.llvm.org/D40335

llvm-svn: 321200
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/fmsubadd-combine.ll