[PATCH] D155002: [RISCV] Remove SiFive7GetCyclesWidening from RISCVSchedSiFive7.td.
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 11 12:11:21 PDT 2023
craig.topper created this revision.
craig.topper added reviewers: michaelmaitland, monkchiang.
Herald added subscribers: jobnoorman, luke, VincentWu, vkmr, frasercrmck, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya, arichardson.
Herald added a project: All.
craig.topper requested review of this revision.
Herald added subscribers: wangpc, eopXD, MaskRay.
Herald added a project: LLVM.
It's identical to SiFive7GetCyclesDefault.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D155002
Files:
llvm/lib/Target/RISCV/RISCVSchedSiFive7.td
Index: llvm/lib/Target/RISCV/RISCVSchedSiFive7.td
===================================================================
--- llvm/lib/Target/RISCV/RISCVSchedSiFive7.td
+++ llvm/lib/Target/RISCV/RISCVSchedSiFive7.td
@@ -40,17 +40,6 @@
);
}
-class SiFive7GetCyclesWidening<string mx> {
- int c = !cond(
- !eq(mx, "M1") : 2,
- !eq(mx, "M2") : 4,
- !eq(mx, "M4") : 8,
- !eq(mx, "MF2") : 1,
- !eq(mx, "MF4") : 1,
- !eq(mx, "MF8") : 1
- );
-}
-
class SiFive7GetCyclesNarrowing<string mx> {
int c = !cond(
!eq(mx, "M1") : 4,
@@ -649,7 +638,7 @@
// Widening
foreach mx = SchedMxListW in {
- defvar Cycles = SiFive7GetCyclesWidening<mx>.c;
+ defvar Cycles = SiFive7GetCyclesDefault<mx>.c;
defvar IsWorstCase = SiFive7IsWorstCaseMX<mx, SchedMxListW>.c;
let Latency = 8, ResourceCycles = [Cycles] in {
defm "" : LMULWriteResMX<"WriteVIWALUV", [SiFive7VA], mx, IsWorstCase>;
@@ -745,14 +734,14 @@
// Widening
foreach mx = SchedMxListW in {
- defvar Cycles = SiFive7GetCyclesWidening<mx>.c;
+ defvar Cycles = SiFive7GetCyclesDefault<mx>.c;
defvar IsWorstCase = SiFive7IsWorstCaseMX<mx, SchedMxListW>.c;
let Latency = 8, ResourceCycles = [Cycles] in {
defm "" : LMULWriteResMX<"WriteVFWCvtIToFV", [SiFive7VA], mx, IsWorstCase>;
}
}
foreach mx = SchedMxListFW in {
- defvar Cycles = SiFive7GetCyclesWidening<mx>.c;
+ defvar Cycles = SiFive7GetCyclesDefault<mx>.c;
defvar IsWorstCase = SiFive7IsWorstCaseMX<mx, SchedMxListFW>.c;
let Latency = 8, ResourceCycles = [Cycles] in {
defm "" : LMULWriteResMX<"WriteVFWALUV", [SiFive7VA], mx, IsWorstCase>;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155002.539233.patch
Type: text/x-patch
Size: 1624 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230711/26543bba/attachment.bin>
More information about the llvm-commits
mailing list