[PATCH] D151470: [RISCV][NFC] Make Reduction scheduler resources SEW aware
Michael Maitland via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 26 06:42:30 PDT 2023
michaelmaitland added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td:3467
defvar mx = m.MX;
- defvar WriteVIWRedV_From_MX = !cast<SchedWrite>("WriteVIWRedV_From_" # mx);
- defm _VS : VPseudoTernaryWithTailPolicy_E<V_M1.vrclass, m.vrclass, V_M1.vrclass, m>,
- Sched<[WriteVIWRedV_From_MX, ReadVIWRedV, ReadVIWRedV,
- ReadVIWRedV, ReadVMask]>;
+ foreach e = SchedSEWSet<mx>.val in {
+ defvar WriteVIWRedV_From_MX_E = !cast<SchedWrite>("WriteVIWRedV_From_" # mx # "_E" # e);
----------------
craig.topper wrote:
> Should we have a different SEWSet that doesn't 64 in it since we can't widen those?
We would need to do this for all widening instructions, not just reductions? Same for narrowing instructions shouldn't contain the smallest SEW?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151470/new/
https://reviews.llvm.org/D151470
More information about the llvm-commits
mailing list