mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-24 12:19:53 +00:00
Change errs() to dbgs().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92599 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8b45eadfec
commit
83964b7944
@ -89,7 +89,7 @@ void BasicInlinerImpl::inlineFunctions() {
|
||||
}
|
||||
}
|
||||
|
||||
DEBUG(errs() << ": " << CallSites.size() << " call sites.\n");
|
||||
DEBUG(dbgs() << ": " << CallSites.size() << " call sites.\n");
|
||||
|
||||
// Inline call sites.
|
||||
bool Changed = false;
|
||||
@ -109,21 +109,21 @@ void BasicInlinerImpl::inlineFunctions() {
|
||||
}
|
||||
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());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user