Do not mark no-return calls tail calls. It'll screw up special calls like longjmp...
authorEvan Cheng <evan.cheng@apple.com>
Sun, 31 Jan 2010 00:59:31 +0000 (00:59 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Sun, 31 Jan 2010 00:59:31 +0000 (00:59 +0000)
commit56a5886b20433569e5eb9c5b1ad350ef0c0e0596
tree8fc9464d61ba12128eebcff14f3218c2d5293792
parent3ed6f876c8c30d82dceccfdd7e3f1774a85adc7c
Do not mark no-return calls tail calls. It'll screw up special calls like longjmp and it doesn't make much sense for performance reason. If my logic is faulty, please let me know.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94937 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/TailRecursionElimination.cpp
test/Transforms/TailCallElim/no-return-calls.ll [new file with mode: 0644]