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

Wang Pengcheng via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 5 23:33:59 PST 2023


================
@@ -435,7 +515,10 @@ InstructionCost RISCVTTIImpl::getShuffleCost(TTI::ShuffleKind Kind,
     if (LT.second.isFixedLengthVector())
       // vrsub.vi has a 5 bit immediate field, otherwise an li suffices
       LenCost = isInt<5>(LT.second.getVectorNumElements() - 1) ? 0 : 1;
-    InstructionCost GatherCost = 2 + TLI->getVRGatherVVCost(LT.second);
+    // FIXME: replace the constant `2` below with cost of VSIMPLE_INT (vid.v &
----------------
wangpc-pp wrote:

This FIXME is stale.

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


More information about the llvm-commits mailing list