We may visit a call that uses an alloca multiple times in callUsesLocalStack, sometim...
authorNick Lewycky <nicholas@mxc.ca>
Wed, 23 Jul 2014 06:24:49 +0000 (06:24 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Wed, 23 Jul 2014 06:24:49 +0000 (06:24 +0000)
commit1bda2d938644901f0608ba63f76eb44ed792a0ee
tree22419896a324be03dff669298c23cf3b00f7b3a7
parentb8d363431313e53ca3c35685b7fab7718de7bfa6
We may visit a call that uses an alloca multiple times in callUsesLocalStack, sometimes with IsNocapture true and sometimes with IsNocapture false. We accidentally skipped work we needed to do in the IsNocapture=false case if we were called with IsNocapture=true the first time. Fixes PR20405!

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