Re: [Qemu-devel] [PATCH] tcg: try sti when moving a constant into a dead memory temp

2016-09-22 Thread Richard Henderson
On 09/15/2016 06:16 AM, Paolo Bonzini wrote: 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

Re: [Qemu-devel] [PATCH] tcg: try sti when moving a constant into a dead memory temp

2016-09-21 Thread Paolo Bonzini
On 20/09/2016 22:41, Richard Henderson wrote: > On 09/15/2016 06:16 AM, Paolo Bonzini wrote: >> 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

Re: [Qemu-devel] [PATCH] tcg: try sti when moving a constant into a dead memory temp

2016-09-20 Thread Richard Henderson
On 09/15/2016 06:16 AM, Paolo Bonzini wrote: > 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:

[Qemu-devel] [PATCH] tcg: try sti when moving a constant into a dead memory temp

2016-09-15 Thread Paolo Bonzini
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,%ebpsubl $0x3c,%ebp