[llvm] [LV] Allow partial reductions with an extended bin op (PR #165536)
Sam Tebbs via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 6 05:19:19 PST 2025
================
@@ -7994,6 +8005,14 @@ bool VPRecipeBuilder::getScaledReductions(
ExtOpTypes[I] = ExtOp->getType();
ExtKinds[I] = TTI::getPartialReductionExtendKind(Exts[I]);
+ // Make sure that the outer extend is either sext or the same kind as the
+ // inner extend.
+ if (OuterExtKind.has_value()) {
----------------
SamTebbs33 wrote:
It looks like that's actually crashing on main as well, and is fixed by https://github.com/llvm/llvm-project/pull/162822.
https://github.com/llvm/llvm-project/pull/165536
More information about the llvm-commits
mailing list