[llvm] [TTI] Add VectorInstrContext for context-aware insert/extract costs. (PR #175982)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 27 03:01:22 PST 2026
================
@@ -3448,8 +3448,11 @@ InstructionCost VPReplicateRecipe::computeCost(ElementCount VF,
ResultTy = Ctx.Types.inferScalarType(this);
}
+ TTI::VectorInstrContext VIC =
+ IsLoad ? TTI::VectorInstrContext::Load : TTI::VectorInstrContext::Store;
return (ScalarCost * VF.getFixedValue()) +
- Ctx.getScalarizationOverhead(ResultTy, OpsToScalarize, VF, true);
+ Ctx.getScalarizationOverhead(ResultTy, OpsToScalarize, VF, VIC,
+ true);
----------------
fhahn wrote:
yeah let me check that separately
https://github.com/llvm/llvm-project/pull/175982
More information about the llvm-commits
mailing list