[llvm-commits] [llvm] r52052 - /llvm/trunk/lib/VMCore/PassManager.cpp
Devang Patel
dpatel at apple.com
Fri Jun 6 10:50:37 PDT 2008
Author: dpatel
Date: Fri Jun 6 12:50:36 2008
New Revision: 52052
URL: http://llvm.org/viewvc/llvm-project?rev=52052&view=rev
Log:
Print debug message only if there are dead passes.
Modified:
llvm/trunk/lib/VMCore/PassManager.cpp
Modified: llvm/trunk/lib/VMCore/PassManager.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/PassManager.cpp?rev=52052&r1=52051&r2=52052&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/PassManager.cpp (original)
+++ llvm/trunk/lib/VMCore/PassManager.cpp Fri Jun 6 12:50:36 2008
@@ -665,9 +665,10 @@
TPM->collectLastUses(DeadPasses, P);
- if (PassDebugging >= Details) {
+ if (PassDebugging >= Details && !DeadPasses.empty()) {
cerr << " -*- " << P->getPassName();
- cerr << " is the last users of following passes. Free them\n";
+ cerr << " is the last user of following pass instances.";
+ cerr << " Free these instances\n";
}
for (SmallVector<Pass *, 12>::iterator I = DeadPasses.begin(),
More information about the llvm-commits
mailing list