diff options
author | Eric Anholt <[email protected]> | 2017-05-04 14:44:38 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2017-07-25 14:55:10 -0700 |
commit | 53492917e2153e9f5eb503792c2793a8e4cba391 (patch) | |
tree | 6a76eb0df685965c0670827da142bee1abb0f595 /.dir-locals.el | |
parent | 7a34a0e8903249c41fae06fea22be105caf290df (diff) |
broadcom/vc4: Use the RA callback to improve register selection's choices.
We simply pick r4 if available (anything else would force a MOV), then
round-robin through accumulators (avoids physical regfile RAW delay
slots), then round-robin through the physical regfile.
The effect on instruction count is pretty impressive:
total instructions in shared programs: 76563 -> 74526 (-2.66%)
instructions in affected programs: 66463 -> 64426 (-3.06%)
and we could probably do better with a little heuristic of "if we're going
to choose a physical reg, and other operands of instructions using this as
a src have the same physical regfile, then use the other regfile".
Diffstat (limited to '.dir-locals.el')
0 files changed, 0 insertions, 0 deletions