> -----Original Message-----
> From: Saurabh Jha <[email protected]>
> Sent: 30 October 2026 10:56
> To: Wilco Dijkstra <[email protected]>; gcc-patches mailing list <gcc-
> [email protected]>; Tamar Christina <[email protected]>;
> [email protected]
> Cc: Kyrylo Tkachov <[email protected]>
> Subject: Re: [PATCH v1 0/2] Dispatch scheduling for Neoverse V3
> 
> Hey Wilco,
> 
> Thanks for your review.
> >
> > So this is a huge amount of code that duplicates the Neoverse V2 version.
> > I'm surprised this models things in a very different way than the Neoverse 
> > V2
> > scheduler, despite the micro architectures being related.
> >
> > I would have expected to make minor changes and share most code. I would
> > share the huge neoversev2_dispatch mappings and deal with any differences
> > in the callback.
> >
> > Overall I'm confused what all the total_slots calculations are trying to
> achieve.
> > Basically things are going wrong right here:
> >
> > + static const int neoversev3_dispatch_max_slots[] = {
> > +   20, /* total slots  */
> >
> > A 10 wide CPU has 10 slots, not 20...
> 
> 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.

Thanks,
Tamar

> >
> > I think it is best to start with a fairly simplistic model that models the 
> > basics
> and then
> > improve upon it by adding more complex cases. For example just modelling
> the max
> > number of alu, simd, load and store ops would be a good starting point.
> 
> Maybe we can just start with counting load and vector instructions since
> they have dispatch constraints and try to build up from that. If that is
> the case, should we also have another look at Neoverse V2 and try to
> simplify that model well?
> 
> Many thanks,
> Saurabh
> 
> >
> > At least it's clear why both dispatch schedulers don't show any
> improvement!
> >
> > Cheers,
> > Wilco

Reply via email to