Displaying 1 result from an estimated 1 matches for "ll_ret".
Did you mean:
el_ret
2013 Mar 30
2
[LLVMdev] Missed optimisation opportunities?
...ypes.
For example a boolean variable could be true, false, or null.
To model this behaviour, I'm passing an {i1, [type]} around for every
numeric type. And using insertvalue / extractvalue all over the place.
So when compiling this simple CS example;
function long fib (long al_x)
long ll_i=0, ll_ret=0, ll_last=0, ll_last2=1
if isnull(al_x) then
return al_x
end if
ll_i=1
do while ll_i<=al_x
ll_ret=ll_last+ll_last2
ll_last2=ll_last
ll_last=ll_ret
ll_i++
loop
return ll_ret
end function
With the following function passes;
FunctionPasses->add(new DataLayout(*JIT...