[llvm] [LV] Create in-loop sub reductions (PR #147026)
Sander de Smalen via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 8 00:53:32 PDT 2025
================
@@ -24345,6 +24348,8 @@ bool SLPVectorizerPass::tryToVectorize(Instruction *I, BoUpSLP &R) {
CostKind);
break;
}
+ case RecurKind::Sub:
+ llvm_unreachable("Unexpected recurrence kind.");
----------------
sdesmalen-arm wrote:
nit: I think you can remove this unreachable, because lots of other unsupported recurrence kinds are handled safely here by returning `false`.
https://github.com/llvm/llvm-project/pull/147026
More information about the llvm-commits
mailing list