[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:17:38 PDT 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG8480fed422a4: [RISCV] Remove SiFive7GetCyclesWidening from RISCVSchedSiFive7.td. (authored by craig.topper).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D155002/new/
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.539235.patch
Type: text/x-patch
Size: 1624 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230711/bb5fc45b/attachment.bin>
More information about the llvm-commits
mailing list