[llvm-commits] [llvm] r127684 - /llvm/trunk/lib/Transforms/Utils/LCSSA.cpp
Cameron Zwarich
zwarich at apple.com
Tue Mar 15 11:42:33 PDT 2011
Author: zwarich
Date: Tue Mar 15 13:42:33 2011
New Revision: 127684
URL: http://llvm.org/viewvc/llvm-project?rev=127684&view=rev
Log:
Clean up something noticed by Fritz.
Modified:
llvm/trunk/lib/Transforms/Utils/LCSSA.cpp
Modified: llvm/trunk/lib/Transforms/Utils/LCSSA.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/LCSSA.cpp?rev=127684&r1=127683&r2=127684&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/LCSSA.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/LCSSA.cpp Tue Mar 15 13:42:33 2011
@@ -269,7 +269,7 @@
// Remove PHI nodes that did not have any uses rewritten.
for (unsigned i = 0, e = AddedPHIs.size(); i != e; ++i) {
- if (!AddedPHIs[i]->hasNUsesOrMore(1))
+ if (AddedPHIs[i]->use_empty())
AddedPHIs[i]->eraseFromParent();
}
More information about the llvm-commits
mailing list