[llvm] [NFC][TTI] Remove default CostKind from TTI::getMemoryOpCost() (PR #219070)

Ryan Buchner via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 28 16:00:42 PDT 2026


================
@@ -1626,9 +1626,9 @@ class LowerMatrixIntrinsics {
         InstructionCost EmbedCost(0);
         // Roughly estimate the cost for embedding the columns into a vector.
         for (unsigned I = 1; I < N; ++I)
-          EmbedCost += TTI.getShuffleCost(
-              TTI::SK_Splice, FixedVectorType::get(EltTy, 1),
-              FixedVectorType::get(EltTy, 1), TTI::TCK_RecipThroughput);
+          EmbedCost +=
+              TTI.getShuffleCost(TTI::SK_Splice, FixedVectorType::get(EltTy, 1),
+                                 FixedVectorType::get(EltTy, 1), CostKind);
----------------
bababuck wrote:

Yes, is NFC. Prior to this set of MRs, we were relying on default parameter values for the CostKind for several TTI functions. CostKind in this case is a constant that matches the value that was previously defaulted to in `getShuffleCost`.

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


More information about the llvm-commits mailing list