* What this mean "dead: 1" and "dead: 0 1" on each tb block start?
@ 2020-07-29 14:27 tugouxp
2020-07-29 16:16 ` Richard Henderson
0 siblings, 1 reply; 3+ messages in thread
From: tugouxp @ 2020-07-29 14:27 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 1264 bytes --]
HI folks:
on each tb block start, there are following ir code, and the most confusing me is that the postfix of each line "dead:" flag, what it is represent precisely?
i guess it may be related to the register or varible liveness for help generating tghe target machine code, but i cant get the precisely connection of the dead attrribute with qemu internal varibles.
for example, why the line 61 use "dead:1" and the line 63 use "dead: 0, 1"? what is the precisely meaning of the number after the "dead:" word?
thank you!
60 OP after optimization and liveness analysis:
61 ld_i32 tmp5,env,$0xffffffffffffffec dead: 1
62 movi_i32 tmp6,$0x0
63 brcond_i32 tmp5,tmp6,lt,$L0 dead: 0 1
64
65 ---- 60000004 00000000 00000e04
66 movi_i32 tmp5,$0x60000010
67 mov_i32 tmp7,tmp5 dead: 1
68 qemu_ld_i32 tmp6,tmp7,leul,3 dead: 1
69 mov_i32 r1,tmp6 sync: 0 dead: 0 1
70 goto_tb $0x1
71 movi_i32 pc,$0x60000008 sync: 0 dead: 0
72 exit_tb $0x7f8e8ef58101
73 set_label $L0
74 exit_tb $0x7f8e8ef58103
75
[-- Attachment #2: Type: text/html, Size: 2947 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: What this mean "dead: 1" and "dead: 0 1" on each tb block start?
2020-07-29 14:27 What this mean "dead: 1" and "dead: 0 1" on each tb block start? tugouxp
@ 2020-07-29 16:16 ` Richard Henderson
2020-07-30 5:54 ` tugouxp
0 siblings, 1 reply; 3+ messages in thread
From: Richard Henderson @ 2020-07-29 16:16 UTC (permalink / raw)
To: tugouxp, qemu-devel
On 7/29/20 7:27 AM, tugouxp wrote:
> HI folks:
> on each tb block start, there are following ir code, and the most confusing
> me is that the postfix of each line "dead:" flag, what it is represent precisely?
> i guess it may be related to the register or varible liveness for help
> generating tghe target machine code, but i cant get the precisely connection of
> the dead attrribute with qemu internal varibles.
> for example, why the line 61 use "dead:1" and the line 63 use "dead: 0, 1"?
> what is the precisely meaning of the number after the "dead:" word?
>
> thank you!
>
>
> 60 OP after optimization and liveness analysis:
>
> 61 ld_i32 tmp5,env,$0xffffffffffffffec dead: 1
>
> 62 movi_i32 tmp6,$0x0
>
> 63 brcond_i32 tmp5,tmp6,lt,$L0 dead: 0 1
The numbers are the index of the argument that is dead.
E.g. here, both tmp5 and tmp6 are dead.
r~
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re:Re: What this mean "dead: 1" and "dead: 0 1" on each tb block start?
2020-07-29 16:16 ` Richard Henderson
@ 2020-07-30 5:54 ` tugouxp
0 siblings, 0 replies; 3+ messages in thread
From: tugouxp @ 2020-07-30 5:54 UTC (permalink / raw)
To: Richard Henderson; +Cc: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 1127 bytes --]
So, flag is also the paramter index right? ,what about the sync ?
At 2020-07-30 00:16:25, "Richard Henderson" <richard.henderson@linaro.org> wrote:
>On 7/29/20 7:27 AM, tugouxp wrote:
>> HI folks:
>> on each tb block start, there are following ir code, and the most confusing
>> me is that the postfix of each line "dead:" flag, what it is represent precisely?
>> i guess it may be related to the register or varible liveness for help
>> generating tghe target machine code, but i cant get the precisely connection of
>> the dead attrribute with qemu internal varibles.
>> for example, why the line 61 use "dead:1" and the line 63 use "dead: 0, 1"?
>> what is the precisely meaning of the number after the "dead:" word?
>>
>> thank you!
>>
>>
>> 60 OP after optimization and liveness analysis:
>>
>> 61 ld_i32 tmp5,env,$0xffffffffffffffec dead: 1
>>
>> 62 movi_i32 tmp6,$0x0
>>
>> 63 brcond_i32 tmp5,tmp6,lt,$L0 dead: 0 1
>
>The numbers are the index of the argument that is dead.
>
>E.g. here, both tmp5 and tmp6 are dead.
>
>
>r~
[-- Attachment #2: Type: text/html, Size: 1881 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-07-30 6:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-29 14:27 What this mean "dead: 1" and "dead: 0 1" on each tb block start? tugouxp
2020-07-29 16:16 ` Richard Henderson
2020-07-30 5:54 ` tugouxp
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.