[llvm] [VPlan] First step towards VPlan cost modeling. (PR #67934)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri May 10 07:43:36 PDT 2024
================
@@ -973,6 +973,93 @@ void VPWidenRecipe::execute(VPTransformState &State) {
#endif
}
+InstructionCost VPWidenRecipe::computeCost(ElementCount VF,
+ VPCostContext &Ctx) {
+ VPWidenRecipe *Cur = this;
+ // Check if the recipe is used in a reduction chain. Let the legacy cost-model
+ // handle that case for now.
----------------
fhahn wrote:
Code removed, as reduction chain costs are pre-computed
https://github.com/llvm/llvm-project/pull/67934
More information about the llvm-commits
mailing list