]> Git Repo - qemu.git/commit - tcg/tcg.c
tcg: try sti when moving a constant into a dead memory temp
authorPaolo Bonzini <[email protected]>
Thu, 15 Sep 2016 13:16:00 +0000 (15:16 +0200)
committerPaolo Bonzini <[email protected]>
Mon, 24 Oct 2016 13:27:19 +0000 (15:27 +0200)
commit0fe4fca4e1a5e06a270127dd80bb753d4dda61c6
treea084c6075233094c328d65ad60560fa574e90791
parent620abfb004543404bef1953e25da2ad77352941a
tcg: try sti when moving a constant into a dead memory temp

This comes from free from unifying tcg_reg_alloc_mov and
tcg_reg_alloc_movi's handling of TEMP_VAL_CONST.  It triggers
often on moves to cc_dst, such as the following translation
of "sub $0x3c,%esp":

  before:                          after:
  subl   $0x3c,%ebp                subl   $0x3c,%ebp
  movl   %ebp,0x10(%r14)           movl   %ebp,0x10(%r14)
  movl   $0x3c,%ebx                movl   $0x3c,0x2c(%r14)
  movl   %ebx,0x2c(%r14)

Signed-off-by: Paolo Bonzini <[email protected]>
Message-Id: <1473945360[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
tcg/tcg.c
This page took 0.022108 seconds and 4 git commands to generate.