[LLVMdev] Virtual Register allocation across functions

Eli Friedman eli.friedman at gmail.com
Mon Oct 20 17:26:59 PDT 2008


On Mon, Oct 20, 2008 at 2:14 PM, Villmow, Micah <Micah.Villmow at amd.com> wrote:
> The mov to r1024 in function 1 clobbers the data from function 0. The only
> ways I can think to get around this, is to push every virtual register used
> in a function to a stack or some internal data structure and then pull them
> back out for each function call.

Just to double-check, are you planning on compiling code which uses
recursion?  If you are, you have to have some way of saving registers.

-Eli



More information about the llvm-dev mailing list