[llvm] [TTI][CostModel] Add cost modeling for expandload and compressstore intrinsics (PR #122882)

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 22 10:05:57 PST 2025


================
@@ -1469,6 +1469,14 @@ class BasicTTIImplBase : public TargetTransformInfoImplCRTPBase<T> {
                                        true, CostKind);
   }
 
+  InstructionCost getConsecutiveMemoryOpCost(unsigned Opcode, Type *DataTy,
+                                             bool VariableMask, Align Alignment,
+                                             TTI::TargetCostKind CostKind,
+                                             const Instruction *I = nullptr) {
+    return getCommonMaskedMemoryOpCost(Opcode, DataTy, Alignment, VariableMask,
----------------
preames wrote:

The generic implementation should go through getGatherScatterOpCost instead of the internal implementation detail.  Unless there's a reason for this I'm missing?

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


More information about the llvm-commits mailing list