[llvm] [LV] Create in-loop sub reductions (PR #147026)
Sam Tebbs via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 5 08:28:45 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
----------------
SamTebbs33 wrote:
Done.
https://github.com/llvm/llvm-project/pull/147026
More information about the llvm-commits
mailing list