Teach TailRecursionElimination to consider 'nocapture' when deciding whether
authorNick Lewycky <nicholas@mxc.ca>
Sun, 21 Oct 2012 23:51:22 +0000 (23:51 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sun, 21 Oct 2012 23:51:22 +0000 (23:51 +0000)
commit241d1398e0f8267c4dd8bf860e84a2c61739c07f
treeb46da98964d69daef685e8f37f24d48661483c55
parent3d39fb8a3f0a29468f59456d723ac477fc549c08
Teach TailRecursionElimination to consider 'nocapture' when deciding whether
calls can be marked tail.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166405 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/TailRecursionElimination.cpp
test/Transforms/TailCallElim/nocapture.ll