[llvm] [SLP] More accurately cost RISCV scalar splats (PR #213104)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 15 09:28:11 PDT 2026
================
@@ -666,6 +673,31 @@ TargetTransformInfo::getVectorInstrContextHint(const Instruction *I) {
return VectorInstrContext::None;
}
+TargetTransformInfo::VectorInstrContext
+TargetTransformInfo::getBuildVectorContextHint(
----------------
alexey-bataev wrote:
I think it should be target specific. I.e in RISCV TTI you need to override it and check for splat operands. Otherwise, call the generic version.
https://github.com/llvm/llvm-project/pull/213104
More information about the llvm-commits
mailing list