[llvm-dev] register spilling and printing live variables

Priyanka Panigrahi via llvm-dev llvm-dev at lists.llvm.org
Thu Oct 24 23:09:43 PDT 2019


Hello,

I have studied register allocation in theoretical aspects and exploring the
same in the implementation level.

I need a minimal testcase for register spilling to analyze spilling
procedure in llvm. I tried with a testcase taking 20 variables but all the
20 variables are getting stored in the stack using %rbp. Maybe my live
variable analysis is wrong. Please help me with a minimal testcase to
explore register spilling in llvm,

Is there any way to print the maximum live variables in source code. So
that we can find out the minimum registers required for execution. Also, is
it possible to print the register map of each variable in source code.

Any help would be appreciated.
Thank you in advance.

Regards,
Priyanka
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20191025/e8c8abe6/attachment.html>


More information about the llvm-dev mailing list