Revert my previous change on Local.cpp, instead, fix the bug on scalarrepl.
authorZhou Sheng <zhousheng00@gmail.com>
Wed, 18 Mar 2009 10:13:08 +0000 (10:13 +0000)
committerZhou Sheng <zhousheng00@gmail.com>
Wed, 18 Mar 2009 10:13:08 +0000 (10:13 +0000)
commit16767c6b49659d5187ebb70c97207b0bf146ba35
tree60315ad8950a2d3b2de53024c84e151454e24b81
parent6b2c7ae2c926d9622c1b5537a789c5d5d726428e
Revert my previous change on Local.cpp, instead, fix the bug on scalarrepl.
If the instruction has no users, it is also not only used by debug info
and should not be deleted.

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