[llvm] [LV] Add support for absolute difference partial reductions (PR #188043)
Sander de Smalen via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 14 08:35:49 PDT 2026
================
@@ -6216,6 +6242,33 @@ matchExtendedReductionOperand(VPWidenRecipe *UpdateR, VPValue *Op,
assert(is_contained(UpdateR->operands(), Op) &&
"Op should be operand of UpdateR");
+ // Try matching an absolute difference operand of the form:
+ // `abs(sub(ext(A), ext(B)))`. We can rewrite these to
----------------
sdesmalen-arm wrote:
```suggestion
// `abs(sub(ext(A), ext(B)))`, which is later transformed into
```
https://github.com/llvm/llvm-project/pull/188043
More information about the llvm-commits
mailing list