summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Passes/PassBuilder.cpp
diff options
context:
space:
mode:
authorJingyue Wu <jingyue@google.com>2015-08-11 19:21:46 +0000
committerJingyue Wu <jingyue@google.com>2015-08-11 19:21:46 +0000
commit99eb4685efada56574fc4a954038624be96457b8 (patch)
tree236beb6fcea8f426aa270f11321bc32d19baa5dc /llvm/lib/Passes/PassBuilder.cpp
parent7752db61cc2c44d211223dde485be2f12fbef277 (diff)
downloadbcm5719-llvm-99eb4685efada56574fc4a954038624be96457b8.tar.gz
bcm5719-llvm-99eb4685efada56574fc4a954038624be96457b8.zip
SelectionDAG: Prefer to combine multiplication with less uses for fma
Summary: For example: s6 = s0*s5; s2 = s6*s6 + s6; ... s4 = s6*s3; We notice that it is possible for s2 is folded to fma (s0, s5, fmul (s6 s6)). This only happens when Aggressive is true, otherwise hasOneUse() check already prevents from folding the multiplication with more uses. Test Plan: test/CodeGen/NVPTX/fma-assoc.ll Patch by Xuetian Weng Reviewers: hfinkel, apazos, jingyue, ohsallen, arsenm Subscribers: arsenm, jholewinski, llvm-commits Differential Revision: http://reviews.llvm.org/D11855 llvm-svn: 244649
Diffstat (limited to 'llvm/lib/Passes/PassBuilder.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud