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

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 10 22:55:51 PST 2025


dtcxzyw wrote:

> I also think reassociate is not the right name.

reassociate is correct here. For example, this patch converts `(v0 + v1 + v2 + v3) + (v4 + v5 + v6 + v7)` into `(v0 + v4) + (v1 + v5) + (v2 + v6) + (v3 + v7)`.



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


More information about the llvm-commits mailing list