[llvm] [RISCV][TTI] Implement getAddressComputationCost() in RISCV TTI. (PR #149955)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 23 16:10:15 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
----------------
topperc wrote:
```suggestion
// Address computations with vector type are usually for indexed load/store
```
https://github.com/llvm/llvm-project/pull/149955
More information about the llvm-commits
mailing list