tcg: Don't make exitreq flag a local temporary
authorRichard Henderson <rth@twiddle.net>
Tue, 5 Mar 2013 16:54:41 +0000 (08:54 -0800)
committerAurelien Jarno <aurelien@aurel32.net>
Sat, 9 Mar 2013 17:16:43 +0000 (18:16 +0100)
The value is not actually live across basic blocks, so there's no
need for the local property.  This eliminates storing the temporary
to its home location at the branch.

Signed-off-by: Richard Henderson <rth@twiddle.net>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
include/exec/gen-icount.h

index 4e3b17b083481fccd2ec079474bbfc6bf239776f..4fc7b2981d640ef2d860485bb89e084671601e26 100644 (file)
@@ -15,7 +15,7 @@ static inline void gen_tb_start(void)
     TCGv_i32 flag;
 
     exitreq_label = gen_new_label();
-    flag = tcg_temp_local_new_i32();
+    flag = tcg_temp_new_i32();
     tcg_gen_ld_i32(flag, cpu_env,
                    offsetof(CPUState, tcg_exit_req) - ENV_OFFSET);
     tcg_gen_brcondi_i32(TCG_COND_NE, flag, 0, exitreq_label);