[RFC] Moving toward smarter disabling of FPRs, VRs, and VSRs in the MSR

Segher Boessenkool segher at kernel.crashing.org
Sun Mar 15 00:55:07 EST 2009


>> It's very likely that a process which results in the
> enabling of FP,VMX, or VSX may continue to use the facility for the
> duration of it's lifetime.  Threads would be even more likely to  
> exhibit
> this behavior.
>
> The case where this might not be true is if we use VMX or VSX for  
> string
> routine optimization in GLIBC.  This will require metrics to prove  
> it's
> utility of course.

OTOH, the main cost of using VMX etc. is exactly this register save/ 
restore,
and it's a win otherwise pretty much always.  I.e., as soon as you take
that initial hit, almost anything can get a speedup from VMX.  So  
even if
you do not see an overall speedup from, say, only some optimised string
routines, it probably is worth it anyway as it pays the initial cost for
enabling more optimisations later.


Segher




More information about the Linuxppc-dev mailing list