When removing a store to an alloca that has only one
authorDale Johannesen <dalej@apple.com>
Tue, 3 Mar 2009 21:26:39 +0000 (21:26 +0000)
committerDale Johannesen <dalej@apple.com>
Tue, 3 Mar 2009 21:26:39 +0000 (21:26 +0000)
commit4945c657848523410a449280c6b88ee1f507511f
tree7d4289d59f99c38cd21ebd66d4ac7365872be18f
parent44e3dd1672572df28e79649c86f2d44bf3730062
When removing a store to an alloca that has only one
use, check also for the case where it has two uses,
the other being a llvm.dbg.declare.  This is needed so
debug info doesn't affect codegen.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65970 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
lib/Transforms/Utils/BasicBlockUtils.cpp
test/DebugInfo/2009-03-03-deadstore.ll [new file with mode: 0644]