[llvm] [RISCV][TTI] Implement getAddressComputationCost() in RISCV TTI. (PR #149955)

Elvis Wang via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 23 22:36:26 PDT 2025


================
@@ -1503,6 +1503,18 @@ RISCVTTIImpl::getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA,
 
   return BaseT::getIntrinsicInstrCost(ICA, CostKind);
 }
+InstructionCost RISCVTTIImpl::getAddressComputationCost(Type *Ty,
+                                                        ScalarEvolution *SE,
+                                                        const SCEV *Ptr) const {
+  // Address computations with vector type is for usually for index load/store
----------------
ElvisWang123 wrote:

Fixed, thanks!

https://github.com/llvm/llvm-project/pull/149955


More information about the llvm-commits mailing list