Frits van Bommel: >[LDC] [1]: It currently does not realize the array load can be done before the >function call, but I submitted a patch to LLVM for that. (This is why it >currently needs to be split up, so that LDC emits the load before the function >call)<
I guess you mean this: http://llvm.org/bugs/show_bug.cgi?id=4323 It seems they are accepting such changes of yours, you are good :-) >Note that if the accumulator is introduced manually, the tail recursion indeed >gets eliminated by DMD (and turned into a loop).< Very good, thank you for modifying the code. I have done a similar error two times... I'll change the LiveJournal post ASAP. Bye and thank you, bearophile
