[llvm] [LoopVectorizer][AArch64] Add support for partial reduce subtraction (PR #123636)

Sam Tebbs via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 29 03:19:32 PST 2025


================
@@ -8761,20 +8762,23 @@ bool VPRecipeBuilder::getScaledReductions(
     return false;
 
   using namespace llvm::PatternMatch;
+  BinaryOperator *ExtendedBinOp = BinOp;
+  match(BinOp, m_Neg(m_BinOp(ExtendedBinOp)));
----------------
SamTebbs33 wrote:

Could this just set `BinOp` inside the match instead of creating a new variable?

https://github.com/llvm/llvm-project/pull/123636


More information about the llvm-commits mailing list