[PATCH] D26602: [DAGCombiner] do not fold (fmul (fadd X, 1), Y) -> (fmad X, Y, Y) by default

Nicolai Hähnle via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 30 08:52:41 PST 2016


nhaehnle updated this revision to Diff 79758.
nhaehnle added a comment.

Rebased on https://reviews.llvm.org/D27260.

Tentatively disable the FMAD variant unless unsafe-math is enabled. I
haven't yet checked/updated the tests, will follow up if the change in
general is agreed on.


https://reviews.llvm.org/D26602

Files:
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  test/CodeGen/AMDGPU/fma-combine.ll
  test/CodeGen/X86/fma_patterns.ll
  test/CodeGen/X86/fma_patterns_wide.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26602.79758.patch
Type: text/x-patch
Size: 52567 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161130/4692b769/attachment-0001.bin>


More information about the llvm-commits mailing list