[llvm] [VPlan] Sink retrieving legacy costs to more specific computeCost impls. (PR #109708)

via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 8 14:32:35 PDT 2024


================
@@ -2156,6 +2158,11 @@ void VPBranchOnMaskRecipe::execute(VPTransformState &State) {
   ReplaceInstWithInst(CurrentTerminator, CondBr);
 }
 
+InstructionCost VPBranchOnMaskRecipe::computeCost(ElementCount VF,
+                                                  VPCostContext &Ctx) const {
----------------
ayalz wrote:

Some explanation for treating this branch as free.

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


More information about the llvm-commits mailing list