[llvm] [RISCV][CostModel][NFC] Add getRISCVInstructionCost() to TTI for Cost… (PR #73651)

Wang Pengcheng via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 28 20:13:50 PST 2023


================
@@ -34,6 +34,53 @@ static cl::opt<unsigned> SLPMaxVF(
         "exclusively by SLP vectorizer."),
     cl::Hidden);
 
+InstructionCost
+RISCVTTIImpl::getRISCVInstructionCost(RISCVInstruction Inst, MVT VT,
----------------
wangpc-pp wrote:

What about making it `getRISCVInstructionCost(ArrayRef<RISCVInstruction> Insts, MVT VT, TTI::TargetCostKind CostKind)` and calculate the cost sum of `Insts`?

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


More information about the llvm-commits mailing list