[llvm] [VPlan] Reject partial reductions with invalid costs in getScaledReds. (PR #180438)

Sander de Smalen via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 9 02:24:21 PST 2026


https://github.com/sdesmalen-arm approved this pull request.

Accepted with some nits.

On https://github.com/llvm/llvm-project/pull/178919#discussion_r2769196559 Graham pointed out this exact same issue and I wrote there that I would fix this in a separate PR, which I eventually spent a chunk of my Friday afternoon working on. Unfortunately I didn't have time to post it before I had to catch my train and was subsequently away all weekend. Because you left comments on that PR as well, I figured you would have seen the conversation and made the connection with the Github Issue that was reported. Did you miss that conversation or not realise these were the same issue? There's no point in me posting my changes now as they're largely identical, I just wish I would have spent my time on Friday differently.

As a general comment, the LV is a codebase that sees a lot of churn and a way for others to keep up is to help with fixing the odd issue. As a maintainer/area lead it may help to step back a bit sometimes and leave room for others to get involved. Otherwise, this is not really a collaborative project.

With that being said, are you planning any other refactoring or improvements for partial reductions? It would be good to avoid further duplicating work.

https://github.com/llvm/llvm-project/pull/180438


More information about the llvm-commits mailing list