[RISCV] Fix some errors in the vector part of the scheduler model for SiFive7.
authorCraig Topper <craig.topper@sifive.com>
Mon, 22 May 2023 19:46:25 +0000 (12:46 -0700)
committerCraig Topper <craig.topper@sifive.com>
Mon, 22 May 2023 19:46:25 +0000 (12:46 -0700)
commit490764985395c611720c30a2684ddaab485001ea
treefa252b2f518e1b261b04e0400a1b94f2e8b00112
parent4c5b535439e842d33cfe50de8384f3d1ca055ab1
[RISCV] Fix some errors in the vector part of the scheduler model for SiFive7.

-FP compare latency was too high.
-Compare instructions need to increase latency to assume no chaining
to later instructions.

vmv.x.s, vmv.s.x, vfmv.f.s, and vfmv.s.f aren't 8 cycles. From the
the perspective of the vector pipeline they are only 4 cycles. Though
vector to scalar has a much higher latency from the perspective
of the scalar pipeline. Will need to adjust in the future.

Reviewed By: michaelmaitland

Differential Revision: https://reviews.llvm.org/D151136
llvm/lib/Target/RISCV/RISCVSchedSiFive7.td