<div dir="ltr"><div>Hi,<br><br></div><div>Is there a way to print the register liveness information into the assembly file or as some intermediate listing?<br></div><div>To be more precise, I am looking at figuring out the following information in an assembly file/listing.<br><br></div><div>Say, for simplicity, our register set is only { rsp, rbp, eax }<br></div><div><br><br></div><div>subq $16, %rsp // rsp is killed here, eax and rbp are live<br>movl $0, -4(%rbp) // rbp is killed here, rsp and eax are live<br>xorl %eax, %eax // eax is killed here, rsp and rbp are live<br>movl $1, %eax // eax is killed here, rsp and rbp are live<br><br></div><div>Is there a way LLVM stores this information somewhere before producing assembly?<br></div><div>I
haven't dug into the source code yet, but intuitively the information
must be there and hence maybe some pass dumps that info?<br><br></div>Thanks!<br><br><div class="gmail_signature"><i style="font-family:times new roman,serif"><b> Anitha</b></i><br></div>
</div>