diff options
author | Mikhail Gudim <mgudim@gmail.com> | 2023-07-17 11:51:59 -0400 |
---|---|---|
committer | Mikhail Gudim <mgudim@gmail.com> | 2023-07-28 11:08:02 -0400 |
commit | cb15e657b5ef5682a9fbda8d881d12cf8d8da79e (patch) | |
tree | f305f3c75b6e1047e4d5b73f7ee2402c85c38884 /llvm/lib | |
parent | a3da6284c23affdd9092b2641017e99d85c2d89b (diff) | |
download | llvm-cb15e657b5ef5682a9fbda8d881d12cf8d8da79e.zip llvm-cb15e657b5ef5682a9fbda8d881d12cf8d8da79e.tar.gz llvm-cb15e657b5ef5682a9fbda8d881d12cf8d8da79e.tar.bz2 |
[RISCV] A test for conditional binary ops.
Consider the following pattern:
```
%binop_ = binop %x, %y
%select_ = select %c, %binop_, %x
```
If there is an identity `%identity` operand for `binop`, it is possible to transform
the above code to:
```
%opearand = select %c, %y, %identity
%result = binop %x, %operand
```
This transformation is profitable when `%identity` is all zeroes or
ones.
This patch commits a test for such patterns.
Reviewed By: craig.topper
Differential Revision: https://reviews.llvm.org/D155481
Diffstat (limited to 'llvm/lib')
0 files changed, 0 insertions, 0 deletions