diff options
author | Stefan Weil <sw@weilnetz.de> | 2012-10-04 20:29:02 +0200 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2012-10-07 16:36:16 +0000 |
commit | d838201111894b17ca9123d5d2a74ab4cf6376d6 (patch) | |
tree | 50cbe1cb1015878e47234affc6c72d4a60c1b019 /tcg/tcg.h | |
parent | 046dbab95f33e007428190610d638d2fcaf37fdf (diff) | |
download | qemu-d838201111894b17ca9123d5d2a74ab4cf6376d6.zip qemu-d838201111894b17ca9123d5d2a74ab4cf6376d6.tar.gz qemu-d838201111894b17ca9123d5d2a74ab4cf6376d6.tar.bz2 |
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.h')
-rw-r--r-- | tcg/tcg.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -367,7 +367,6 @@ struct TCGContext { TCGPool *pool_first, *pool_current, *pool_first_large; TCGLabel *labels; int nb_labels; - TCGTemp *temps; /* globals first, temps after */ int nb_globals; int nb_temps; /* index of free temps, -1 if none */ @@ -393,7 +392,7 @@ struct TCGContext { int frame_reg; uint8_t *code_ptr; - TCGTemp static_temps[TCG_MAX_TEMPS]; + TCGTemp temps[TCG_MAX_TEMPS]; /* globals first, temps after */ TCGHelperInfo *helpers; int nb_helpers; |