lifengxiang1025 wrote: I'm not sure why we treat direct recursion specially. Why don't we treat all recursion in the same way?For example: foo->foo->foo foo->bar->foo->bar https://github.com/llvm/llvm-project/pull/78264