aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorMikhail Gudim <mgudim@gmail.com>2023-07-17 11:51:59 -0400
committerMikhail Gudim <mgudim@gmail.com>2023-07-28 11:08:02 -0400
commitcb15e657b5ef5682a9fbda8d881d12cf8d8da79e (patch)
treef305f3c75b6e1047e4d5b73f7ee2402c85c38884 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parenta3da6284c23affdd9092b2641017e99d85c2d89b (diff)
downloadllvm-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/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions