When PromoteLocallyUsedAllocas promoted allocas, it didn't remember
authorChris Lattner <sabre@nondot.org>
Sat, 4 Aug 2007 20:01:43 +0000 (20:01 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 4 Aug 2007 20:01:43 +0000 (20:01 +0000)
commit7a5745b38ccdf2794a6f04f01a1c8115ec223ad8
tree0cb30d9e65cb70b654800ce881eef2befdcda0c0
parent59a28377152789a5144588cc20e9db30759aa46d
When PromoteLocallyUsedAllocas promoted allocas, it didn't remember
to increment NumLocalPromoted, and didn't actually delete the
dead alloca, leading to an extra iteration of mem2reg.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40817 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/PromoteMemoryToRegister.cpp