[PATCH] D13003: [DAGCombiner] Improve FMA support for interpolation patterns

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 20 11:01:01 PDT 2015


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

This patch adds support for combining patterns such as (FMUL(FADD(1.0, x), y)) and (FMUL(FSUB(x, 1.0), y)) to their FMA equivalents.

This is useful in particular for linear interpolation cases such as (FADD(FMUL(x, t), FMUL(y, FSUB(1.0, t))))

Repository:
  rL LLVM

http://reviews.llvm.org/D13003

Files:
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  test/CodeGen/AMDGPU/llvm.amdgpu.lrp.ll
  test/CodeGen/X86/fma_patterns.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13003.35206.patch
Type: text/x-patch
Size: 15977 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150920/f397c675/attachment.bin>


More information about the llvm-commits mailing list