diff options
author | Mikhail Gudim <mgudim@gmail.com> | 2023-06-14 17:30:50 -0400 |
---|---|---|
committer | Mikhail Gudim <mgudim@gmail.com> | 2023-07-14 15:30:54 -0400 |
commit | c158ddd99eaf3f0ce712ef6e629fdd8e7e272919 (patch) | |
tree | 630a3d80a329e3801a621ad74a65ffb0aa282705 /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
parent | 51857058ffa48265a8350fac574c88c0aa0d46f2 (diff) | |
download | llvm-c158ddd99eaf3f0ce712ef6e629fdd8e7e272919.zip llvm-c158ddd99eaf3f0ce712ef6e629fdd8e7e272919.tar.gz llvm-c158ddd99eaf3f0ce712ef6e629fdd8e7e272919.tar.bz2 |
Reapply [RISCV] Fold binary op into select if profitable.
This fixes some bugs in the original commit:
(1) Operands are passed in correct order when creating new constant
and the binary operator. New tests were added to cover these cases.
(2) Check was added to see if it is safe to commute the select and the binary operator.
Reviewed By: Craig Topper
Differential Revision: https://reviews.llvm.org/D152147
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions