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)
commitaba900c2525b6bbc2bb8e294974f0c694cc8c06a
treeda4b17a7fafdcfdc9a65b7d914009958d26f69fb
parent9386c82d56745579e86ddbe3a37bea6604658c6a
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!

llvm-svn: 213726
llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp
llvm/test/Transforms/TailCallElim/basic.ll