[llvm] [VPlan] Add support for in-loop AnyOf reductions (PR #131830)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 18 11:34:45 PDT 2025


lukel97 wrote:

> It would be good if this wouldn't require a dedicated hook

I was hoping we would just reuse the existing preferInLoopReductions hook

But yeah it would be nice if we could have the cost model automatically select in-loop or out-of-loop reductions depending on the cost. We don't do it today for the tail folding style either, that's also a hook. We would need to create new VPlans for those? Is that something that could be explored in a separate PR?

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


More information about the llvm-commits mailing list