Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [DAGCombine] Check the uses of negated floating constant and remove the hack | QingShan Zhang | 2020-06-26 | 1 | -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 Zhang | 2020-01-09 | 1 | -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 test | QingShan Zhang | 2020-01-08 | 1 | -2/+4 |
| | | | | fma-combine.ll | ||||
* | [NFC][Test] Add a test to verify the DAGCombine of fma | QingShan Zhang | 2020-01-07 | 1 | -0/+143 |