If a global constant is dead then global's debug info should not prevent the optimize...
authorDevang Patel <dpatel@apple.com>
Wed, 4 Mar 2009 01:22:23 +0000 (01:22 +0000)
committerDevang Patel <dpatel@apple.com>
Wed, 4 Mar 2009 01:22:23 +0000 (01:22 +0000)
commit7f6179d1d8723fdbd59ff105cecc4632d897e99d
tree1655564368edf88f228cea4a6231db0be26c2614
parent0d6596b7bf9c8ef2aa980b34575273a489e3a16e
If a global constant is dead then global's debug info should not prevent the optimizer in deleting the global. And while deleting global, delete global's debug info also.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65994 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/GlobalOpt.cpp
test/Transforms/GlobalOpt/2009-03-03-dbg.ll [new file with mode: 0644]