diff options
| author | Zhou Sheng <zhousheng00@gmail.com> | 2009-03-18 10:13:08 +0000 |
|---|---|---|
| committer | Zhou Sheng <zhousheng00@gmail.com> | 2009-03-18 10:13:08 +0000 |
| commit | 05bea906c181f7cc22bdfd96194a35337259586a (patch) | |
| tree | e15e536ad07c5383bc45fc85bec384435d8f4118 /llvm/lib/Transforms/Utils | |
| parent | a2aedc69435dd430925e77022cbd26cc51e30982 (diff) | |
| download | bcm5719-llvm-05bea906c181f7cc22bdfd96194a35337259586a.tar.gz bcm5719-llvm-05bea906c181f7cc22bdfd96194a35337259586a.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.
llvm-svn: 67194
Diffstat (limited to 'llvm/lib/Transforms/Utils')
| -rw-r--r-- | llvm/lib/Transforms/Utils/Local.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp index 468136c9968..4be1b8717d2 100644 --- a/llvm/lib/Transforms/Utils/Local.cpp +++ b/llvm/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)) { |

