[llvm] [LoopVectorizer][AArch64] Add support for partial reduce subtraction (PR #123636)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 25 05:51:45 PST 2025
================
@@ -8800,6 +8800,10 @@ bool VPRecipeBuilder::getScaledReductions(
return false;
using namespace llvm::PatternMatch;
+ // Use the side-effect of match to replace BinOp only if the pattern is
+ // matched, we don't care at this point whether it actually matched.
+ match(BinOp, m_Neg(m_BinOp(BinOp)));
----------------
david-arm wrote:
Ah, I realise now that `m_Neg` is actually matching a `sub 0, %x` operation. Please ignore the noise!
https://github.com/llvm/llvm-project/pull/123636
More information about the llvm-commits
mailing list