[PATCH] D108193: [RISCV] Optimize add in the zba extension with SH*ADD

Ben Shi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 19 04:53:25 PDT 2021


benshi001 added a comment.

In D108193#2954069 <https://reviews.llvm.org/D108193#2954069>, @luismarques wrote:

> Wouldn't this also work for the sh1add case? If so, any reason for omitting from this patch?

We have already optimized (add x, 4094) to (ADDI (ADDI x, 2047), 2047), so SH1ADD is not no long needed.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D108193/new/

https://reviews.llvm.org/D108193



More information about the llvm-commits mailing list