Displaying 2 results from an estimated 2 matches for "x_5734".
Did you mean:
15734
2011 Feb 07
4
[LLVMdev] Newbie Question: not using local variables
...ing. What I mean by this that when I see:
let x = 3 in ...
the value of x can not be changed. It can be shadowed, like:
let x = f () in
let x = x + 4 in
...
but one of the first things I do is rename all the variables so they're
unique, so the above code might get changed into:
let x_5734 = f () in
let x_8643 = x_5734 + 4 in
...
Now, my question is this: is there any downside to not having any
stack-based local variables at all- just put everything into registers and
let the register allocation code decide what needs to get spilled onto the
stack? In other words, is there a...
2011 Feb 08
0
[LLVMdev] Newbie Question: not using local variables
...in ...
> the value of x can not be changed. It can be shadowed, like:
> let x = f () in
> let x = x + 4 in
> ...
> but one of the first things I do is rename all the variables so they're
> unique, so the above code might get changed into:
> let x_5734 = f () in
> let x_8643 = x_5734 + 4 in
> ...
>
> Now, my question is this: is there any downside to not having any
> stack-based local variables at all- just put everything into registers and
> let the register allocation code decide what needs to get spilled onto th...