mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-12 05:56:28 +00:00
Finegrainify namespacification
Print out the costs for functions that AREN'T inlined as well llvm-svn: 10135
This commit is contained in:
parent
1b7c6e072b
commit
4a92f545ba
@ -23,8 +23,7 @@
|
||||
#include "Support/CommandLine.h"
|
||||
#include "Support/Debug.h"
|
||||
#include "Support/Statistic.h"
|
||||
|
||||
namespace llvm {
|
||||
using namespace llvm;
|
||||
|
||||
namespace {
|
||||
Statistic<> NumInlined("inline", "Number of functions inlined");
|
||||
@ -77,7 +76,10 @@ bool Inliner::runOnSCC(const std::vector<CallGraphNode*> &SCC) {
|
||||
// try to do so...
|
||||
int InlineCost = inSCC ? getRecursiveInlineCost(CS) :
|
||||
getInlineCost(CS);
|
||||
if (InlineCost < (int)InlineThreshold) {
|
||||
if (InlineCost >= (int)InlineThreshold) {
|
||||
DEBUG(std::cerr << " NOT Inlining: cost=" << InlineCost
|
||||
<< ", Call: " << *CS.getInstruction());
|
||||
} else {
|
||||
DEBUG(std::cerr << " Inlining: cost=" << InlineCost
|
||||
<< ", Call: " << *CS.getInstruction());
|
||||
|
||||
@ -137,4 +139,3 @@ bool Inliner::performInlining(CallSite CS, std::set<Function*> &SCC) {
|
||||
return true;
|
||||
}
|
||||
|
||||
} // End llvm namespace
|
||||
|
Loading…
Reference in New Issue
Block a user