RFC tcg: Use TCGTemp pointers instead of indices
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest14 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/14 | tcg: Use NULL for TCGV_UNUSED_*tcg/ tcg/ | +11 | 0 replies | |
| 2/14 | tcg: Define actual structures for TCGv_*tcg/ tcg/ | +138 | 0 replies | |
| 3/14 | tcg: Use per-temp state data in livenesstcg/ tcg/ | +132 | 0 replies | |
| 4/14 | tcg: Add temp_global bit to TCGTemptcg/ tcg/ | +17 | 0 replies | |
| 5/14 | tcg: Avoid loops against variable boundstcg/ | +10 | 0 replies | |
| 6/14 | tcg: More use of arg_temptcg/ | +13 | 0 replies | |
| 7/14 | tcg: Change temp_allocate_frame arg to TCGTemptcg/ | +3 | 0 replies | |
| 8/14 | tcg: Remove unused TCG_CALL_DUMMY_TCGVtcg/ | +0 | 0 replies | |
| 9/14 | tcg: More use of arg_indextcg/ | +5 | 0 replies | |
| 10/14 | tcg: Map TCG_CALL_DUMMY_ARG to NULLtcg/ tcg/ | +14 | 0 replies | |
| 11/14 | tcg: Introduce temp_info for the optimize passtcg/ | +123 | 0 replies | |
| 12/14 | tcg: Store pointers to temporaries directly in TCGArgtcg/ tcg/ tcg/ | +84 | 0 replies | |
| 13/14 | tcg: Use temp number 0 againtcg/ | +0 | 0 replies | |
| 14/14 | tcg/optimize: Fold movcond 0/1 into setcondtcg/ | +15 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [Qemu-devel] [RFC 00/14] tcg: Use TCGTemp pointers instead of indices
The comment clarification that Peter asked for in this last cycle made me wonder if we couldn't make better use of the data that we're already storing.
We have pointer sized integers that we're passing around. Why should we not simply pass the pointers themselves, to save on looking them up later?
This does cause a few data structures to grow, so it's not a sure fire win. Indeed, getting measurements that aren't noise seems to be a problem.
I'm curious if anyone thinks this is a technical improvment, or if it's just churn.
(Oh, and the last patch is unrelated, but because of the timeline in which is was written it is dependent on the others. It could be adjusted to be independent, but that would just be extra work.)
r~
Richard Henderson (13):
tcg: Use NULL for TCGV_UNUSED_*
tcg: Define actual structures for TCGv_*
tcg: Use per-temp state data in liveness
tcg: Add temp_global bit to TCGTemp
tcg: Avoid loops against variable bounds
tcg: More use of arg_temp
tcg: Change temp_allocate_frame arg to TCGTemp
tcg: Remove unused TCG_CALL_DUMMY_TCGV
tcg: More use of arg_index
tcg: Map TCG_CALL_DUMMY_ARG to NULL
tcg: Introduce temp_info for the optimize pass
tcg: Store pointers to temporaries directly in TCGArg
tcg: Use temp number 0 again
tcg/optimize: Fold movcond 0/1 into setcond
tcg/optimize.c | 291 +++++++++++++++++++++++++----------------- tcg/tcg.c | 392 ++++++++++++++++++++++++++------------------------------- tcg/tcg.h | 259 ++++++++++++++++++++------------------ 3 files changed, 493 insertions(+), 449 deletions(-)
Signature · 1 line
2.7.4