summaryrefslogtreecommitdiff
path: root/tcg/tcg.c
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2012-10-04 20:29:02 +0200
committerBlue Swirl <blauwirbel@gmail.com>2012-10-07 16:36:16 +0000
commitd838201111894b17ca9123d5d2a74ab4cf6376d6 (patch)
tree50cbe1cb1015878e47234affc6c72d4a60c1b019 /tcg/tcg.c
parent046dbab95f33e007428190610d638d2fcaf37fdf (diff)
tcg: Remove redundant pointer from TCGContext
The pointer entry 'temps' always refers to the array entry 'static_temps'. Removing the pointer and renaming 'static_temps' to 'temps' reduces the size of TCGContext (4 or 8 byte) and allows better code generation. Signed-off-by: Stefan Weil <sw@weilnetz.de> Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'tcg/tcg.c')
-rw-r--r--tcg/tcg.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/tcg/tcg.c b/tcg/tcg.c
index 78ef50b6ee..32cd0c6b65 100644
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -242,7 +242,6 @@ void tcg_context_init(TCGContext *s)
int *sorted_args;
memset(s, 0, sizeof(*s));
- s->temps = s->static_temps;
s->nb_globals = 0;
/* Count total number of arguments and allocate the corresponding