Disable inlining of recursive calls. It can complicate tailcallelim and
authorDan Gohman <gohman@apple.com>
Fri, 16 Apr 2010 16:01:18 +0000 (16:01 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 16 Apr 2010 16:01:18 +0000 (16:01 +0000)
commitb391bb8947e9703e4803d50f24df6caaa8bb0cc9
treeb0cba8da285159033f107ca19aa36b3008735770
parentea25b48af33be42e19236d8eac26bd42b45bcc1b
Disable inlining of recursive calls. It can complicate tailcallelim and
dependent analyses, and increase code size, so doing it profitably would
require more complex heuristics.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101471 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/InlineCost.cpp
test/Transforms/Inline/tail-recursion.ll [new file with mode: 0644]