summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PowerPC/fma-combine.ll
Commit message (Collapse)AuthorAgeFilesLines
* [DAGCombine] Check the uses of negated floating constant and remove the hackQingShan Zhang2020-06-261-0/+101
| | | | | | | | | | | | | PowerPC hits an assertion due to somewhat the same reason as https://reviews.llvm.org/D70975. Though there are already some hack, it still failed with some case, when the operand 0 is NOT a const fp, it is another fma that with const fp. And that const fp is negated which result in multi-uses. A better fix is to check the uses of the negated const fp. If there are already use of its negated value, we will have benefit as no extra Node is added. Differential revision: https://reviews.llvm.org/D75501 (cherry picked from commit 3906ae387f0775dfe4426e4336748269fafbd190)
* [DAGCombine] Fold the (fma -x, y, -z) to -(fma x, y, z)QingShan Zhang2020-01-091-24/+18
| | | | | | | This is a positive combination as long as the NEG is NOT free, as we are reducing the number of NEG from two to one. Differential Revision: https://reviews.llvm.org/D72312
* [NFC][Test] Add the option -enable-no-signed-zeros-fp-math for testQingShan Zhang2020-01-081-2/+4
| | | | fma-combine.ll
* [NFC][Test] Add a test to verify the DAGCombine of fmaQingShan Zhang2020-01-071-0/+143
OpenPOWER on IntegriCloud