Print debug message only if there are dead passes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52052 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel 2008-06-06 17:50:36 +00:00
parent 30073ff412
commit 8fb6a94b69

View File

@ -665,9 +665,10 @@ void PMDataManager::removeDeadPasses(Pass *P, const char *Msg,
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(),