Hacker News new | ask | show | jobs
by j16sdiz 340 days ago
recursive function can be inline when unrolled. This is a valid optimization.

Google "llvm inline recursion". It exists. It should works. Fibonacci is the standard test case.

1 comments

But not every recursive function can be inlined (without a secondary stack).