[llvm-commits] [llvm] r92599 - /llvm/trunk/lib/Transforms/Utils/BasicInliner.cpp
David Greene
greened at obbligato.org
Mon Jan 4 17:26:40 PST 2010
Author: greened
Date: Mon Jan 4 19:26:39 2010
New Revision: 92599
URL: http://llvm.org/viewvc/llvm-project?rev=92599&view=rev
Log:
Change errs() to dbgs().
Modified:
llvm/trunk/lib/Transforms/Utils/BasicInliner.cpp
Modified: llvm/trunk/lib/Transforms/Utils/BasicInliner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/BasicInliner.cpp?rev=92599&r1=92598&r2=92599&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/BasicInliner.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/BasicInliner.cpp Mon Jan 4 19:26:39 2010
@@ -89,7 +89,7 @@
}
}
- DEBUG(errs() << ": " << CallSites.size() << " call sites.\n");
+ DEBUG(dbgs() << ": " << CallSites.size() << " call sites.\n");
// Inline call sites.
bool Changed = false;
@@ -109,21 +109,21 @@
}
InlineCost IC = CA.getInlineCost(CS, NeverInline);
if (IC.isAlways()) {
- DEBUG(errs() << " Inlining: cost=always"
+ DEBUG(dbgs() << " Inlining: cost=always"
<<", call: " << *CS.getInstruction());
} else if (IC.isNever()) {
- DEBUG(errs() << " NOT Inlining: cost=never"
+ DEBUG(dbgs() << " NOT Inlining: cost=never"
<<", call: " << *CS.getInstruction());
continue;
} else {
int Cost = IC.getValue();
if (Cost >= (int) BasicInlineThreshold) {
- DEBUG(errs() << " NOT Inlining: cost = " << Cost
+ DEBUG(dbgs() << " NOT Inlining: cost = " << Cost
<< ", call: " << *CS.getInstruction());
continue;
} else {
- DEBUG(errs() << " Inlining: cost = " << Cost
+ DEBUG(dbgs() << " Inlining: cost = " << Cost
<< ", call: " << *CS.getInstruction());
}
}
More information about the llvm-commits
mailing list