2 Commits

Author SHA1 Message Date
Pengcheng Wang
79a1b80af8
[RISCV] Schedule RVV instructions with compatible vtype/vl first
This can reduce some vsetvli toggles.

This can be done in pre-ra scheduling as we have moved insertion of
vsetvli after the first RA.

Currently, we override `tryCandidate` and add a new heuristic based
on comparison of `vtype`/`vl`.

Reviewers: asb, preames, topperc, lukel97, mshockwave, BeMg

Reviewed By: mshockwave, lukel97

Pull Request: https://github.com/llvm/llvm-project/pull/95924
2026-01-12 12:02:39 +08:00
Pengcheng Wang
564f2be43f
[RISCV] Add a custom pre-ra scheduler
Currently we do nothing RISC-V specific in this scheduler.

This is a part of vtype-based scheduling.

Reviewers: BeMg, mshockwave, lukel97, preames, topperc

Pull Request: https://github.com/llvm/llvm-project/pull/172613
2026-01-12 12:00:22 +08:00