commit | 41fc6f18d7ba9fb0dc850961c5bf82def6f01d65 | [log] [tgz] |
---|---|---|
author | Simon Pilgrim <llvm-dev@redking.me.uk> | Mon Sep 21 20:32:48 2015 +0000 |
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | Mon Sep 21 20:32:48 2015 +0000 |
tree | d1499fcdb92b1a0f60359d97a8d1b28bf93ee6a5 | |
parent | 76e7126dd33b88a51304682c475325952a901ac3 [diff] |
[DAGCombiner] Improve FMA support for interpolation patterns 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)))) Differential Revision: http://reviews.llvm.org/D13003 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248210 91177308-0d34-0410-b5e6-96231b3b80d8