aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorZhou Sheng <zhousheng00@gmail.com>2009-03-18 10:13:08 +0000
committerZhou Sheng <zhousheng00@gmail.com>2009-03-18 10:13:08 +0000
commit3da81a7f97231d6a6bc77b60f5a2ed15a58c9385 (patch)
tree60315ad8950a2d3b2de53024c84e151454e24b81 /lib/Transforms/Utils/Local.cpp
parent0a99f9eb3f74b9beb0aa758a3771544226cdbfbc (diff)
downloadexternal_llvm-3da81a7f97231d6a6bc77b60f5a2ed15a58c9385.tar.gz
external_llvm-3da81a7f97231d6a6bc77b60f5a2ed15a58c9385.tar.bz2
external_llvm-3da81a7f97231d6a6bc77b60f5a2ed15a58c9385.zip
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
Diffstat (limited to 'lib/Transforms/Utils/Local.cpp')
-rw-r--r--lib/Transforms/Utils/Local.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/Transforms/Utils/Local.cpp b/lib/Transforms/Utils/Local.cpp
index 468136c996..4be1b8717d 100644
--- a/lib/Transforms/Utils/Local.cpp
+++ b/lib/Transforms/Utils/Local.cpp
@@ -262,9 +262,6 @@ bool llvm::OnlyUsedByDbgInfoIntrinsics(Instruction *I,
if (DbgInUses)
DbgInUses->clear();
- if (I->use_empty())
- return false;
-
for (Value::use_iterator UI = I->use_begin(), UE = I->use_end(); UI != UE;
++UI) {
if (DbgInfoIntrinsic *DI = dyn_cast<DbgInfoIntrinsic>(*UI)) {