]> granicus.if.org Git - llvm/commit
[PowerPC] Add missing pattern for VSX Scalar Negative Multiply-Subtract Single Precision
authorJinsong Ji <jji@us.ibm.com>
Thu, 26 Sep 2019 15:11:33 +0000 (15:11 +0000)
committerJinsong Ji <jji@us.ibm.com>
Thu, 26 Sep 2019 15:11:33 +0000 (15:11 +0000)
commit8685e52545cae5a15d6c288512f95994c0fd2914
treef4181b94994bc5bce0326aaa6cf6745d2fb0a996
parentd2ecaa204cc1e7bcc7d76395c0669d1bfc0b646c
[PowerPC] Add missing pattern for VSX Scalar Negative Multiply-Subtract Single Precision

Summary:
This was found during review of https://reviews.llvm.org/D66050.
In the simple test of fdiv, we miss to fold
```
        fneg 2, 2
        xsmaddasp 3, 2, 0
```
to
```
        xsnmsubasp 3, 2, 0
```
We have the patterns for Double Precision and vectors, just missing
Single Precision, the patch add that.

Reviewers: #powerpc, hfinkel, nemanjai, steven.zhang

Reviewed By: #powerpc, steven.zhang

Subscribers: wuzish, hiraditya, kbarton, MaskRay, shchenz, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D67595

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372985 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCInstrVSX.td
test/CodeGen/PowerPC/fdiv.ll