[llvm] [VPlan] Fix issues around scalar-cast VPInstructions (NFC) (PR #195629)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Sun May 10 13:52:12 PDT 2026
================
@@ -1614,6 +1613,13 @@ void VPInstructionWithType::execute(VPTransformState &State) {
}
}
+InstructionCost VPInstructionWithType::computeCost(ElementCount VF,
+ VPCostContext &Ctx) const {
+ if (!getUnderlyingValue())
+ return 0;
+ return getCostForRecipeWithOpcode(getOpcode(), VF, Ctx);
+}
----------------
fhahn wrote:
Could we do those independently of clean up/removal of isScalarCast? The other changes are potentially functional, but currently untested?
https://github.com/llvm/llvm-project/pull/195629
More information about the llvm-commits
mailing list