[llvm] [VPlan] Handle live-in extend operands in partial reduction ::computeCost (PR #163175)
Sander de Smalen via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 21 06:57:29 PDT 2025
================
@@ -329,7 +329,12 @@ VPPartialReductionRecipe::computeCost(ElementCount VF,
// recipe.
auto HandleWiden = [&](VPWidenRecipe *Widen) {
if (match(Widen, m_Sub(m_ZeroInt(), m_VPValue(Op)))) {
- Widen = dyn_cast<VPWidenRecipe>(Op->getDefiningRecipe());
+ Widen = dyn_cast<VPWidenRecipe>(Op);
+ if (!Widen) {
----------------
sdesmalen-arm wrote:
I left a comment yesterday on @SamTebbs33' patch that took these changes: https://github.com/llvm/llvm-project/pull/147302#discussion_r2444983975
https://github.com/llvm/llvm-project/pull/163175
More information about the llvm-commits
mailing list