[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)
commitd5ffdd36057eb25b31e12f01617a256422283994
treebba4fc7ebce0cea099a2be2ca232cee3041ccf2c
parent99e347fc35aca8fa22e8bdcca8ecf1a1148b2e2d
[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.

llvm-svn: 299572
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/AArch64/neon-fma-FMF.ll