]> Git Repo - qemu.git/commit - tcg/optimize.c
optimize: only write to state when clearing optimizer data
authorPaolo Bonzini <[email protected]>
Fri, 11 Jan 2013 23:42:51 +0000 (15:42 -0800)
committerBlue Swirl <[email protected]>
Sat, 19 Jan 2013 10:13:13 +0000 (10:13 +0000)
commitd193a14a2c94c9c4877ab100c31ec174dc78644c
treef39a3131bceda10d6f2a2ccda3435f6fd7e36a94
parent75f0585f1718c575716021d11bfeb695129f785d
optimize: only write to state when clearing optimizer data

The next patch will add to the TCG optimizer a field that should be
non-zero in the default case.  Thus, replace the memset of the
temps array with a loop.  Only the state field has to be up-to-date,
because others are not used except if the state is TCG_TEMP_COPY
or TCG_TEMP_CONST.

[rth: Extracted the loop to a function.]

Signed-off-by: Paolo Bonzini <[email protected]>
Signed-off-by: Richard Henderson <[email protected]>
Signed-off-by: Blue Swirl <[email protected]>
tcg/optimize.c
This page took 0.024762 seconds and 4 git commands to generate.