[llvm-commits] [llvm] r67578 - in /llvm/trunk: include/llvm/Transforms/IPO/InlinerPass.h lib/Transforms/IPO/Inliner.cpp
Dale Johannesen
dalej at apple.com
Mon Mar 23 16:39:20 PDT 2009
Author: johannes
Date: Mon Mar 23 18:39:20 2009
New Revision: 67578
URL: http://llvm.org/viewvc/llvm-project?rev=67578&view=rev
Log:
Use a SmallPtrSet instead of std::set.
Modified:
llvm/trunk/include/llvm/Transforms/IPO/InlinerPass.h
llvm/trunk/lib/Transforms/IPO/Inliner.cpp
Modified: llvm/trunk/include/llvm/Transforms/IPO/InlinerPass.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Transforms/IPO/InlinerPass.h?rev=67578&r1=67577&r2=67578&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Transforms/IPO/InlinerPass.h (original)
+++ llvm/trunk/include/llvm/Transforms/IPO/InlinerPass.h Mon Mar 23 18:39:20 2009
@@ -20,7 +20,6 @@
#include "llvm/CallGraphSCCPass.h"
#include "llvm/Transforms/Utils/InlineCost.h"
#include "llvm/Target/TargetData.h"
-#include <set>
namespace llvm {
@@ -48,7 +47,7 @@
// InlineCallIfPossible
bool InlineCallIfPossible(CallSite CS, CallGraph &CG,
- const std::set<Function*> &SCCFunctions,
+ const SmallPtrSet<Function*, 8> &SCCFunctions,
const TargetData &TD);
/// This method returns the value specified by the -inline-threshold value,
Modified: llvm/trunk/lib/Transforms/IPO/Inliner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/Inliner.cpp?rev=67578&r1=67577&r2=67578&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/Inliner.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/Inliner.cpp Mon Mar 23 18:39:20 2009
@@ -52,7 +52,7 @@
// InlineCallIfPossible - If it is possible to inline the specified call site,
// do so and update the CallGraph for this operation.
bool Inliner::InlineCallIfPossible(CallSite CS, CallGraph &CG,
- const std::set<Function*> &SCCFunctions,
+ const SmallPtrSet<Function*, 8> &SCCFunctions,
const TargetData &TD) {
Function *Callee = CS.getCalledFunction();
Function *Caller = CS.getCaller();
@@ -128,7 +128,7 @@
CallGraph &CG = getAnalysis<CallGraph>();
TargetData &TD = getAnalysis<TargetData>();
- std::set<Function*> SCCFunctions;
+ SmallPtrSet<Function*, 8> SCCFunctions;
DOUT << "Inliner visiting SCC:";
for (unsigned i = 0, e = SCC.size(); i != e; ++i) {
Function *F = SCC[i]->getFunction();
More information about the llvm-commits
mailing list