[llvm] [LV] Create in-loop sub reductions (PR #147026)

Sander de Smalen via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 5 01:51:38 PDT 2025


================
@@ -23645,7 +23648,7 @@ class HorizontalReduction {
                 IsSigned);
           Value *Scale = ConstantVector::getSplat(
               EC, ConstantInt::get(DestTy->getScalarType(), Cnt));
-          LLVM_DEBUG(dbgs() << "SLP: Add (to-mul) " << Cnt << "of " << Vec
+          LLVM_DEBUG(dbgs() << "SLP: " << (RdxKind == RecurKind::Add ? "Add" : "Sub") << " (to-mul) " << Cnt << "of " << Vec
----------------
sdesmalen-arm wrote:

clang-format..

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


More information about the llvm-commits mailing list