]> granicus.if.org Git - llvm/commit
[DAGCombine] Support FMF contract in fused multiple-and-sub too
authorAdam Nemet <anemet@apple.com>
Wed, 5 Apr 2017 17:58:48 +0000 (17:58 +0000)
committerAdam Nemet <anemet@apple.com>
Wed, 5 Apr 2017 17:58:48 +0000 (17:58 +0000)
commitc0a481413e8c6c18e7744041f5a7f26674f9b4ea
tree1e4cbd9d3b27e5c11461cd945f637f207231c79e
parent0a518c38def1b2118f8f73898934931c876fe48d
[DAGCombine] Support FMF contract in fused multiple-and-sub too

This is a follow-on to r299096 which added support for fmadd.

Subtract does not have the case where with two multiply operands we commute in
order to fuse with the multiply with the fewer uses.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299572 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/AArch64/neon-fma-FMF.ll