On 11/16/26 7:11 PM, Bohan Lei wrote:
Hi Jeff,

This seems a lot more complex than it needs to be.  Can't we just handle
the calls less pessimistically and let the LCM algorithm otherwise do
its job?  I don't think we need to do loop discovery/analysis or
anything like that.  I *think* if we do something more sensible on the
call sites the LCM algorithm will just work.
Yes, probably...  I'll try that with x264.
Thanks.  It's probably worth noting that I'd talked to one of the SiFive compiler engineers a few years back and their conclusion at the time was that if you flush the pipeline on VXRM writes that you were ultimately better off avoiding vectors and just doing those averaging idioms in scalar form if you have a reasonably number of scalar ALUs.

When I wrote the code to more aggressively hoist VXRM it was at a point when we were trying a variety of things to improve performance on early versions of the Veyron V2 design.  We'd already fixed the pipeline flush issue, so gains were minimal, if there were any at all.

Jeff

Reply via email to