diff options
author | Ben Shi <powerman1st@163.com> | 2021-08-17 16:40:16 +0800 |
---|---|---|
committer | Ben Shi <ben.shi@streamcomputing.com> | 2021-08-20 22:41:49 +0800 |
commit | 5b6c9a5ab092954b5305b51a1f7b02aec48285a5 (patch) | |
tree | 26eedbf5e7f5f0eb7db963d79a6b6691af33c980 /llvm/lib/Bitcode | |
parent | e8118e6c8df52cc026daefc1a1c747d9d8a75ed8 (diff) | |
download | llvm-5b6c9a5ab092954b5305b51a1f7b02aec48285a5.zip llvm-5b6c9a5ab092954b5305b51a1f7b02aec48285a5.tar.gz llvm-5b6c9a5ab092954b5305b51a1f7b02aec48285a5.tar.bz2 |
[RISCV] Optimize add in the zba extension with SH*ADD
Optimize (add x, c) to (SH*ADD (c>>b), x) if c is not simm12
while (c>>b) is simm12 and c has b trailing zeros.
Reviewed By: luismarques
Differential Revision: https://reviews.llvm.org/D108193
Diffstat (limited to 'llvm/lib/Bitcode')
0 files changed, 0 insertions, 0 deletions