[Mesa-dev] [PATCH] register_allocate: don't consider trivially colorable registers for spilling.
eric at anholt.net
Tue Oct 2 12:01:05 PDT 2012
Paul Berry <stereotype441 at gmail.com> writes:
> Previously, we considered all registers as candidates for spilling.
> This was counterproductive--for any registers that have already been
> removed from the interference graph, there is no benefit to spilling
> them, since they don't contribute to register pressure.
> This patch ensures that we will only try to spill registers that are
> still in the interference graph after register allocation has failed.
> This is consistent with the recommendations of the paper "Retargetable
> Graph-Coloring Register Allocation for Irregular Architectures", on
> which our register allocator is based.
> Note: I haven't found a shader whose performance is significantly
> improved by this patch (it seems that usually, our heuristics happen
> to select registers that are still in the interference graph), but it
> still seems justified on theoretical grounds.
Reviewed-by: Eric Anholt <eric at anholt.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 197 bytes
Desc: not available
More information about the mesa-dev