[llvm] [SLP] More accurately cost RISCV scalar splats (PR #213104)

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 11 04:28:00 PDT 2026


================
@@ -3594,6 +3609,31 @@ bool RISCVTTIImpl::canSplatOperand(Instruction *I, int Operand) const {
   }
 }
 
+TargetTransformInfo::VectorInstrContext RISCVTTIImpl::getBuildVectorContextHint(
+    ArrayRef<int> Mask, ArrayRef<Value *> Scalars,
+    function_ref<bool(SmallVectorImpl<TargetTransformInfo::BuildVectorUseOp> &)>
+        GatherUseOps) const {
----------------
alexey-bataev wrote:

No, it is not part of SLP, it is purely TTI

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


More information about the llvm-commits mailing list