[llvm] [LV] Bundle sub reductions into VPExpressionRecipe (PR #147255)
Sam Tebbs via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 1 07:22:36 PDT 2025
================
@@ -1647,12 +1647,12 @@ class TargetTransformInfo {
TTI::TargetCostKind CostKind = TTI::TCK_RecipThroughput) const;
/// Calculate the cost of an extended reduction pattern, similar to
- /// getArithmeticReductionCost of an Add reduction with multiply and optional
- /// extensions. This is the cost of as:
- /// ResTy vecreduce.add(mul (A, B)).
- /// ResTy vecreduce.add(mul(ext(Ty A), ext(Ty B)).
+ /// getArithmeticReductionCost of an Add/Sub reduction with multiply and
+ /// optional extensions. This is the cost of as:
+ /// ResTy vecreduce.add/sub(mul (A, B)).
+ /// ResTy vecreduce.add/sub(mul(ext(Ty A), ext(Ty B)).
----------------
SamTebbs33 wrote:
Done.
https://github.com/llvm/llvm-project/pull/147255
More information about the llvm-commits
mailing list