Skip to content

[RISCV] Update MicroOpBufferSize in P400 & P600 scheduling models #128786

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion llvm/lib/Target/RISCV/RISCVSchedSiFiveP400.td
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class SiFiveP400VSM3CCycles<string mx> {

def SiFiveP400Model : SchedMachineModel {
let IssueWidth = 3; // 3 micro-ops are dispatched per cycle.
let MicroOpBufferSize = 56; // Max micro-ops that can be buffered.
let MicroOpBufferSize = 96; // Max micro-ops that can be buffered.
let LoadLatency = 4; // Cycles for loads to access the cache.
let MispredictPenalty = 9; // Extra cycles for a mispredicted branch.
let UnsupportedFeatures = [HasStdExtZbkb, HasStdExtZbkc, HasStdExtZbkx,
Expand Down
8 changes: 4 additions & 4 deletions llvm/lib/Target/RISCV/RISCVSchedSiFiveP600.td
Original file line number Diff line number Diff line change
Expand Up @@ -286,10 +286,10 @@ class SiFiveP600VSHA2MSCycles<string mx, int sew> {

// SiFiveP600 machine model for scheduling and other instruction cost heuristics.
def SiFiveP600Model : SchedMachineModel {
let IssueWidth = 4; // 4 micro-ops are dispatched per cycle.
let MicroOpBufferSize = 160; // Max micro-ops that can be buffered.
let LoadLatency = 4; // Cycles for loads to access the cache.
let MispredictPenalty = 9; // Extra cycles for a mispredicted branch.
let IssueWidth = 4; // 4 micro-ops are dispatched per cycle.
let MicroOpBufferSize = 192; // Max micro-ops that can be buffered.
let LoadLatency = 4; // Cycles for loads to access the cache.
let MispredictPenalty = 9; // Extra cycles for a mispredicted branch.
let UnsupportedFeatures = [HasStdExtZbkb, HasStdExtZbkc, HasStdExtZbkx,
HasStdExtZknd, HasStdExtZkne, HasStdExtZknh,
HasStdExtZksed, HasStdExtZksh, HasStdExtZkr,
Expand Down
6 changes: 3 additions & 3 deletions llvm/test/tools/llvm-mca/RISCV/SiFiveP400/div.s
Original file line number Diff line number Diff line change
Expand Up @@ -328,12 +328,12 @@ vfsqrt.v v8, v16

# CHECK: Iterations: 1
# CHECK-NEXT: Instructions: 320
# CHECK-NEXT: Total Cycles: 22358
# CHECK-NEXT: Total Cycles: 19388
# CHECK-NEXT: Total uOps: 320

# CHECK: Dispatch Width: 3
# CHECK-NEXT: uOps Per Cycle: 0.01
# CHECK-NEXT: IPC: 0.01
# CHECK-NEXT: uOps Per Cycle: 0.02
# CHECK-NEXT: IPC: 0.02
# CHECK-NEXT: Block RThroughput: 14361.0

# CHECK: Instruction Info:
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/tools/llvm-mca/RISCV/SiFiveP400/vlseg-vsseg.s
Original file line number Diff line number Diff line change
Expand Up @@ -1606,7 +1606,7 @@ vsoxseg8ei64.v v8, (a0), v16

# CHECK: Iterations: 1
# CHECK-NEXT: Instructions: 1540
# CHECK-NEXT: Total Cycles: 29967
# CHECK-NEXT: Total Cycles: 28335
# CHECK-NEXT: Total uOps: 1540

# CHECK: Dispatch Width: 3
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/tools/llvm-mca/RISCV/SiFiveP600/div.s
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ vfsqrt.v v8, v16

# CHECK: Iterations: 1
# CHECK-NEXT: Instructions: 320
# CHECK-NEXT: Total Cycles: 14613
# CHECK-NEXT: Total Cycles: 14397
# CHECK-NEXT: Total uOps: 320

# CHECK: Dispatch Width: 4
Expand Down
Loading