Skip to content

RFC tcg: Use TCGTemp pointers instead of indices

Richard Henderson qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest14 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14tcg: Use NULL for TCGV_UNUSED_*tcg/tcg.c tcg/tcg.h+11 -70 replies
2/14tcg: Define actual structures for TCGv_*tcg/tcg.c tcg/tcg.h+138 -1760 replies
3/14tcg: Use per-temp state data in livenesstcg/tcg.c tcg/tcg.h+132 -1030 replies
4/14tcg: Add temp_global bit to TCGTemptcg/tcg.c tcg/tcg.h+17 -70 replies
5/14tcg: Avoid loops against variable boundstcg/tcg.c+10 -170 replies
6/14tcg: More use of arg_temptcg/tcg.c+13 -130 replies
7/14tcg: Change temp_allocate_frame arg to TCGTemptcg/tcg.c+3 -50 replies
8/14tcg: Remove unused TCG_CALL_DUMMY_TCGVtcg/tcg.h+0 -10 replies
9/14tcg: More use of arg_indextcg/tcg.c+5 -40 replies
10/14tcg: Map TCG_CALL_DUMMY_ARG to NULLtcg/tcg.c tcg/tcg.h+14 -240 replies
11/14tcg: Introduce temp_info for the optimize passtcg/optimize.c+123 -920 replies
12/14tcg: Store pointers to temporaries directly in TCGArgtcg/optimize.c tcg/tcg.c tcg/tcg.h+84 -670 replies
13/14tcg: Use temp number 0 againtcg/tcg.c+0 -50 replies
14/14tcg/optimize: Fold movcond 0/1 into setcondtcg/optimize.c+15 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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