two improvements to RemoveAccessedObjects:
authorChris Lattner <sabre@nondot.org>
Tue, 30 Nov 2010 21:38:30 +0000 (21:38 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 30 Nov 2010 21:38:30 +0000 (21:38 +0000)
commit42cb684f8d8440ffd79415280dcb7676d0b5f29a
treed0527de6a48bde22f54187e123d0ec714863b011
parent6bac79deb39c0c1fcd526f1a087bf6013b2826e9
two improvements to RemoveAccessedObjects:
1. if the underlying pointer passed in can be resolved
   to any argument or alloca, then we don't need to scan.
   Previously we would only avoid the scan if the alloca
   or byval was actually considered dead.
2. The dead store processing code is itself completely
   dead and didn't handle volatile stores right anyway,
   so delete it.  This allows simplifying the interface
   to RemoveAccessedObjects.

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