]> granicus.if.org Git - llvm/commit
Merging r293635:
authorHans Wennborg <hans@hanshq.net>
Thu, 2 Feb 2017 21:34:25 +0000 (21:34 +0000)
committerHans Wennborg <hans@hanshq.net>
Thu, 2 Feb 2017 21:34:25 +0000 (21:34 +0000)
commit18b90cd7227909b1fdd3855786853ff065185382
tree8b7bb6c9fa5aa7347049c3299065040fab29c10f
parent2a46e93aedd2d4f2b3e5049e45e3a358cab1577f
Merging r293635:
------------------------------------------------------------------------
r293635 | nha | 2017-01-31 06:35:37 -0800 (Tue, 31 Jan 2017) | 16 lines

[DAGCombine] require UnsafeFPMath for re-association of addition

Summary:
The affected transforms all implicitly use associativity of addition,
for which we usually require unsafe math to be enabled.

The "Aggressive" flag is only meant to convey information about the
performance of the fused ops relative to a fmul+fadd sequence.

Fixes Bug 31626.

Reviewers: spatel, hfinkel, mehdi_amini, arsenm, tstellarAMD

Subscribers: jholewinski, nemanjai, wdng, llvm-commits

Differential Revision: https://reviews.llvm.org/D28675
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_40@293940 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/AMDGPU/fma-combine.ll
test/CodeGen/AMDGPU/mad-combine.ll
test/CodeGen/NVPTX/fma-assoc.ll
test/CodeGen/PowerPC/fma-assoc.ll