[PATCH] D14906: [X86][FMA] Optimize FNEG(FMA) Patterns

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 22 11:11:57 PST 2015


RKSimon created this revision.
RKSimon added reviewers: spatel, delena, qcolombet.
RKSimon added a subscriber: llvm-commits.
RKSimon set the repository for this revision to rL LLVM.

X86 needs to use its own FMA opcodes, preventing the standard FNEG(FMA) pattern table recognition method used by other platforms. This patch adds support for lowering FNEG(FMA(X,Y,Z)) into a single suitably negated FMA instruction.

Fix for PR24364

Repository:
  rL LLVM

http://reviews.llvm.org/D14906

Files:
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/X86/fma_patterns.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14906.40878.patch
Type: text/x-patch
Size: 4370 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151122/89a56379/attachment-0001.bin>


More information about the llvm-commits mailing list