[llvm] [VectorCombine] Fold binary op of reductions. (PR #121567)

David Green via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 31 00:19:19 PST 2025


davemgreen wrote:

Is it possible to make the cost model detect and make use getExtendedReductionCost / getMulAccReductionCost? Otherwise it might not correctly detect that the extending reductions are cheap when they have a `vecreduce.add(s/zext())` or `vecreduce.add(mul(zext(), zext()))` pattern.

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


More information about the llvm-commits mailing list