[llvm] [LV] Add support for absolute difference partial reductions (PR #188043)
Benjamin Maxwell via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 16 03:11:39 PDT 2026
================
@@ -6030,6 +6030,31 @@ optimizeExtendsForPartialReduction(VPSingleDefRecipe *BinOp,
return BinOp;
}
+ // reduce.add(abs(sub(ext(A), ext(B))))
+ // -> reduce.add(ext(absolute-difference(A, B)))
+ VPValue *X, *Y;
+ if (match(BinOp,
----------------
MacDue wrote:
#192422
https://github.com/llvm/llvm-project/pull/188043
More information about the llvm-commits
mailing list