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

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 18 11:10:52 PDT 2025


https://github.com/fhahn commented:


> Is there a specific microarchitecture that you can point to? RISCVSchedSiFive7.td and RISCVSchedSiFiveP600.td seem to imply that they are cheap/don't scale with VL. In any case we can disable it for a specific core in the hook.

It would be good if this wouldn't require a dedicated hook, but just checks the cost of the operations, which should be marked as expensive on the CPUs where it is not profitable. Not sure if this would be already happening in the current version, where we check the reduction cost independent of EVL AFAICT?

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


More information about the llvm-commits mailing list