| Issue |
240403
|
| Summary |
[X86] ZNVER scheduler models don't correctly describe the scheduler buffer hierarchies
|
| Labels |
backend:X86,
tools:llvm-mca,
backend:X86 Scheduler+Cost Models,
optimization:AMDCPU
|
| Assignees |
|
| Reporter |
RKSimon
|
X86ScheduleZnver1.td describes the scalar units as
```
// 56 Entry (14x4 entries) Int Scheduler
def ZnALU : ProcResGroup<[ZnALU0, ZnALU1, ZnALU2, ZnALU3]> {
let BufferSize=56;
}
// 28 Entry (14x2) AGU group. AGUs can't be used for all ALU operations
// but are relevant for some instructions
def ZnAGU : ProcResGroup<[ZnAGU0, ZnAGU1]> {
let BufferSize=28;
}
```
But in the microarch, each ALU/AGU pipe have their own scheduler buffer and we can dispatch 1 uop to each every cycle.
All the later znver models have similar issues with their ALU/AGU schedulers (and from znver3 onward in the FPU as well) - there's random extra complications such as on znver2 the common AGU scheduler accepting max 2uop/cy but serving 3 AGU pipes.
We are most likely going to need to allow MCA scheduler models to properly describe "ProcResGroup of ProcResGroups" hierarchies to correctly handle all this.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs