[PATCH] D120390: [RISCV] Add patterns for vector widening floating-point reduction instructions.
Jianjian Guan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 6 22:24:52 PST 2022
jacquesguan added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td:1143
+defm : VPatWidenReductionVL<rvv_vecreduce_SEQ_FADD_vl, fpext_oneuse, "PseudoVFWREDOSUM", /*is_float*/1>;
+defm : VPatWidenReductionVL_Ext_VL<rvv_vecreduce_SEQ_FADD_vl, riscv_fpextend_vl, "PseudoVFWREDOSUM", /*is_float*/1>;
+defm : VPatWidenReductionVL<rvv_vecreduce_FADD_vl, fpext_oneuse, "PseudoVFWREDUSUM", /*is_float*/1>;
----------------
craig.topper wrote:
> Why do we check oneuse for fpext but not for riscv_fpextend_vl? Looks like we were inconsistent on this for integer too.
Done, I also change the integer pattern.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D120390/new/
https://reviews.llvm.org/D120390
More information about the llvm-commits
mailing list