commit | 8342e3514cb5ebbcd370ceb08db165399808ffae | [log] [tgz] |
---|---|---|
author | jacquesguan <Jianjian.Guan@streamcomputing.com> | Mon Jul 18 17:37:37 2022 +0800 |
committer | Copybara-Service <copybara-worker@google.com> | Thu Aug 04 00:36:46 2022 -0700 |
tree | d5b510c2baf345fc4fe208769b650685e2ac3b0e | |
parent | f41525ff432fb3f49b1dc9a6d39b32c3dc005c27 [diff] |
[RISCV] Add cost modelling for vector widenning reduction. In RVV, we use vwredsum.vs and vwredsumu.vs for vecreduce.add(ext(Ty A)) if the result type's width is twice of the input vector's SEW-width. In this situation, the cost of extended add reduction should be same as single-width add reduction. So as the vector float widenning reduction. Differential Revision: https://reviews.llvm.org/D129994 GitOrigin-RevId: b61cfc91eac83dec7ded1ef1e6d9f9776751d2c0