move call handling in handleEndBlock up a bit, and simplify it.
authorChris Lattner <sabre@nondot.org>
Tue, 30 Nov 2010 21:18:46 +0000 (21:18 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 30 Nov 2010 21:18:46 +0000 (21:18 +0000)
commit86dc6c08cf72668b433ad207cf42cdd9a8fe822a
tree2dde22064b8d9c48b81c20da289292accb2fd511
parent75627d3d2e700b8fa0e040a5ec4ef1a0e299b9b5
move call handling in handleEndBlock up a bit, and simplify it.
If the call might read all the allocas, stop scanning early.
Convert a vector to smallvector, shrink SmallPtrSet to 16 instead
of 64 to avoid crazy linear scans.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120463 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/DeadStoreElimination.cpp