[llvm] [RISCV] Implement RISCVTTIImpl::shouldConsiderAddressTypePromotion for RISCV (PR #102560)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 8 23:38:23 PDT 2024
LiqinWeng wrote:
> Can you add a description and what can we gain from this patch?
![image](https://github.com/user-attachments/assets/873d4875-4be5-4f7b-a773-809f405fcc4d)
This optimization helps reduce repeated calculations of base addresses by extracting type extensions when the same base address is accessed multiple times but its offset is a constant. So I added this API implementation for RISCV
https://github.com/llvm/llvm-project/pull/102560
More information about the llvm-commits
mailing list