Skip to content

Commit 8030c88

Browse files
Add comment about div/rem
Signed-off-by: Mikhail R. Gadelha <[email protected]>
1 parent 840f374 commit 8030c88

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Target/RISCV/RISCVSchedSpacemitX60.td

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ def : WriteRes<WriteIMul32, [SMX60_IEU]> { let Latency = 3; }
7070
def : WriteRes<WriteIMul, [SMX60_IEU]> { let Latency = 6; }
7171

7272
// Integer division/remainder
73-
// Worst case latency is used
73+
// TODO: our experiments show that the latency of div is 4, which
74+
// seems too low. We used the worst case latency from the C908 instead.
7475
let Latency = 12, ReleaseAtCycles = [12] in {
7576
def : WriteRes<WriteIDiv32, [SMX60_IEUA]>;
7677
def : WriteRes<WriteIRem32, [SMX60_IEUA]>;

0 commit comments

Comments
 (0)