Hi Wilco,

> -----Original Message-----
> From: Wilco Dijkstra <[email protected]>
> Sent: 30 October 2026 13:18
> To: Tamar Christina <[email protected]>; Saurabh Jha
> <[email protected]>; gcc-patches mailing list <gcc-
> [email protected]>; [email protected]
> Cc: Kyrylo Tkachov <[email protected]>
> Subject: Re: [PATCH v1 0/2] Dispatch scheduling for Neoverse V3
> 
> Hi Tamar,
> 
> >> I am trying to follow the Neoverse V2 model, which uses 16 for total
> >> slots. If that is wrong too, we should fix both models.
> 
> > The SWoG for V2 says it can dispatch 16 micro-ops per cycle, that for V3
> > Says 20.  Given the scheduling model models the constraints on the micro-
> opts,
> >
> > Why do you think this is wrong? It's not modelling MOPS.
> 
> It's wrong in that it would be impossible to get to that limit even if the CPU
> could
> support it (eg. the V2 model as written has dispatch of 8 to all the ALUs and 
> 6
> to
> load/store - that gives a max of 14 micro-ops).
> 

Yeah but the point was that it can pick up different instructions, i.e. 
schedule a V
operation. This entire thing was started to try to better deal with vector 
operations.

That's why the V2 model mostly added vector instructions.  So it's trying to 
avoid
putting to many instructions like division after each other.  So you can still 
get to the
limit with the right mix of instructions.

Also note that, when the window gets filled, it's not that we insert NOPs, we 
just keep
the remaining instructions for the next window.

> However we still have the 8 (or 10) MOP limit too. The key is that most
> instructions
> are 1 MOP and 1 micro-op, so if we dispatch them, we cannot go beyond the
> 8 (or 10)
> MOPs that can be dispatched.

And we don't. not for the average case, take the V2 SWoG. The highest dispatch 
you can
get is 4 (S) + 4 (B) + 4 (M) + 2 (V0) + 2 (V1) + 6 (L).

that's 18. So we'd not let 18 through. This also means you can easily get to 
16, but the mix of instructions depends on what they use.

> 
> If we have an instruction that is N MOPs, it behaves like N separate
> instructions,
> so it would lower the limit to 8-N (or 10-N).
> 

Yes, we don't model this. that is correct. But these instructions are long 
latency instructions
and don't happen ofter

> If 1 MOP turns into 2 micro-ops, it adds a constraint for each pipe it uses 
> (eg.
> load
> with writeback should be counted as a load as well as an ALU operation).
> These
> constraints ensure we do not oversubscribe issue to each available pipeline.
> 
> For example in the V3 model ALU instructions don't seem to have any pipe
> associated
> and count as 1 slot, so it allows 20 due to the maximum slot count. The V2
> model
> at least limits the number of ALU operations (including for M pipe) to 8, but
> then you
> could still keep adding loads/stores or vector operations well beyond the
> width of 8.
> 
> So we need to model MOPs since micro-ops are already modelled by the
> constraints.

We don't even have constrains for SVE instructions.

Anyway,
Lets take this internal.

Thanks,
Tamar

> 
> Cheers,
> Wilco

Reply via email to