[llvm-branch-commits] [llvm] [LV] Only create partial reductions when profitable. (PR #181706)
Benjamin Maxwell via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Mar 11 14:53:02 PDT 2026
================
@@ -6027,44 +6009,39 @@ static bool isValidPartialReduction(const VPPartialReductionChain &Chain,
static_cast<Instruction::CastOps>(Ext->getOpcode()));
return {ExtOpType, ExtKind};
};
- auto ExtInfoA = GetExtInfo(Chain.ExtendA);
- auto ExtInfoB = GetExtInfo(Chain.ExtendB);
- Type *ExtOpTypeA = ExtInfoA.first;
- Type *ExtOpTypeB = ExtInfoB.first;
- auto ExtKindA = ExtInfoA.second;
- auto ExtKindB = ExtInfoB.second;
+ auto [ExtOpTypeA, ExtKindA] = GetExtInfo(Chain.ExtendA);
----------------
MacDue wrote:
I think this PR needs a rebase (I expect there's a conflict here, but they don't show up yet as the target branch is not `main`).
https://github.com/llvm/llvm-project/pull/181706
More information about the llvm-branch-commits
mailing list