[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:21:11 PDT 2026
================
@@ -1074,10 +1076,34 @@ class TargetTransformInfo {
using VectorInstrContext = llvm::VectorInstrContext;
+ /// Combines 2 context hints into a single value. If both are equal, keep the
+ /// shared context, otherwise fall back to no specific context.
+ LLVM_ABI static TargetTransformInfo::VectorInstrContext
+ combineVectorInstrContexts(TargetTransformInfo::VectorInstrContext Ctx1,
+ TargetTransformInfo::VectorInstrContext Ctx2);
----------------
alexey-bataev wrote:
It is not part of SLP, definitely a part of TTI, does not matter how many users of TTI there is
https://github.com/llvm/llvm-project/pull/213104
More information about the llvm-commits
mailing list