Skip to content

Commit 23fef2c

Browse files
committed
[RISCV] Correct scheduling information for WriteVIRedMinMaxV in RISCVSchedSiFive7.td.
The 'let' with the Latency and Cycles from the previous defm should apply to this one as well. Introduce a scope around the two defms. Reviewed By: wangpc Differential Revision: https://reviews.llvm.org/D159029
1 parent 0cfc2db commit 23fef2c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

llvm/lib/Target/RISCV/RISCVSchedSiFive7.td

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -774,11 +774,12 @@ foreach mx = SchedMxList in {
774774
foreach sew = SchedSEWSet<mx>.val in {
775775
defvar Cycles = SiFive7GetReductionCycles<mx, sew>.c;
776776
defvar IsWorstCase = SiFive7IsWorstCaseMXSEW<mx, sew, SchedMxList>.c;
777-
let Latency = Cycles, ReleaseAtCycles = [Cycles] in
778-
defm "" : LMULSEWWriteResMXSEW<"WriteVIRedV_From", [SiFive7VA],
779-
mx, sew, IsWorstCase>;
780-
defm "" : LMULSEWWriteResMXSEW<"WriteVIRedMinMaxV_From", [SiFive7VA],
781-
mx, sew, IsWorstCase>;
777+
let Latency = Cycles, ReleaseAtCycles = [Cycles] in {
778+
defm "" : LMULSEWWriteResMXSEW<"WriteVIRedV_From", [SiFive7VA],
779+
mx, sew, IsWorstCase>;
780+
defm "" : LMULSEWWriteResMXSEW<"WriteVIRedMinMaxV_From", [SiFive7VA],
781+
mx, sew, IsWorstCase>;
782+
}
782783
}
783784
}
784785

0 commit comments

Comments
 (0)