diff options
author | Eric Anholt <[email protected]> | 2015-10-23 22:12:27 +0100 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2017-07-25 14:44:52 -0700 |
commit | 7a34a0e8903249c41fae06fea22be105caf290df (patch) | |
tree | 4b774ceff55d48157ecce3732066cda04de561b8 /VERSION | |
parent | 3dae034423c5cd0393e773e347a8c847ecd2734d (diff) |
ra: Add a callback for selecting a register from what's available.
VC4 has had a tension, similar to pre-Sandybridge Intel, where we want to
use low-numbered registers (more parallelism on Intel, fewer delay slots
on vc4), but in order to give instruction scheduling the most freedom to
avoid delays we want to round-robin between registers of the same cost.
Our two heuristics so far have chosen one end or the other of that
tradeoff.
The callback, instead, hands the driver the set of registers that are
available, and the driver gets to make its own choice. This will be used
in vc4 to round-robin between registers of the same cost, and might be
used in the future for improving bank selection.
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'VERSION')
0 files changed, 0 insertions, 0 deletions