So that we can remove SchedSEWSetF and simplify some code.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
LGTM with minor comment.
llvm/lib/Target/RISCV/RISCVScheduleV.td | ||
---|---|---|
24 | Should we add an assert that LMUL should not be M8 for widening? |
llvm/lib/Target/RISCV/RISCVScheduleV.td | ||
---|---|---|
24 | The scalar operand is always LMUL=1. But the vector operand of a widening reduction can be LMUL=8 as long at the SEW is less than ELEN. Widening reductions produce a single element result with 2*SEW. |
llvm/lib/Target/RISCV/RISCVScheduleV.td | ||
---|---|---|
24 | Got it. This change looks good and I have no more questions about this assertion. |
Should we add an assert that LMUL should not be M8 for widening?