Tail call optimization?
bearophile
bearophileHUGS at lycos.com
Mon Mar 19 05:07:28 PDT 2012
Stewart Gordon:
> What are "normal cases"?
It means "very simple cases". Things like fibonacci / factorial functions that call themselves at the tail.
Generally it's a fragile optimization, it's easy for it to not work/stop working. LLVM used to perform this optimization, then it stopped working for months an no one noticed. I have written a bug report and they have made it work again. And then they have put it in their demo :-)
http://llvm.org/demo/
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list