Clean up something noticed by Fritz.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127684 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Cameron Zwarich 2011-03-15 18:42:33 +00:00
parent 0191952296
commit 6e51c6ad9d

View File

@ -269,7 +269,7 @@ bool LCSSA::ProcessInstruction(Instruction *Inst,
// Remove PHI nodes that did not have any uses rewritten. // Remove PHI nodes that did not have any uses rewritten.
for (unsigned i = 0, e = AddedPHIs.size(); i != e; ++i) { for (unsigned i = 0, e = AddedPHIs.size(); i != e; ++i) {
if (!AddedPHIs[i]->hasNUsesOrMore(1)) if (AddedPHIs[i]->use_empty())
AddedPHIs[i]->eraseFromParent(); AddedPHIs[i]->eraseFromParent();
} }