This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Fix some errors in the vector part of the scheduler model for SiFive7.
ClosedPublic

Authored by craig.topper on May 22 2023, 12:16 PM.

Details

Summary

-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.

Diff Detail

Event Timeline

craig.topper created this revision.May 22 2023, 12:16 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 22 2023, 12:16 PM
craig.topper requested review of this revision.May 22 2023, 12:16 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 22 2023, 12:16 PM
Herald added subscribers: eopXD, MaskRay. · View Herald Transcript
This revision is now accepted and ready to land.May 22 2023, 12:21 PM
This revision was landed with ongoing or failed builds.May 22 2023, 12:46 PM
This revision was automatically updated to reflect the committed changes.