diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-08-18 00:24:38 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-08-18 00:24:38 +0000 |
commit | 6230691c9186e95cd19dff07074a54fb70719957 (patch) | |
tree | 6bdcca9e44f1549b7264e61c4e15185dbcd0ec10 /llvm/lib/Transforms/IPO/ArgumentPromotion.cpp | |
parent | 4dd9b43c8d42f79fb5b7f11e2f331016cdddb929 (diff) | |
download | llvm-6230691c9186e95cd19dff07074a54fb70719957.zip llvm-6230691c9186e95cd19dff07074a54fb70719957.tar.gz llvm-6230691c9186e95cd19dff07074a54fb70719957.tar.bz2 |
Revert "Repace SmallPtrSet with SmallPtrSetImpl in function arguments to avoid needing to mention the size."
Getting a weird buildbot failure that I need to investigate.
llvm-svn: 215870
Diffstat (limited to 'llvm/lib/Transforms/IPO/ArgumentPromotion.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/ArgumentPromotion.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp index e394535..51632a3 100644 --- a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp +++ b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp @@ -81,8 +81,8 @@ namespace { CallGraphNode *PromoteArguments(CallGraphNode *CGN); bool isSafeToPromoteArgument(Argument *Arg, bool isByVal) const; CallGraphNode *DoPromotion(Function *F, - SmallPtrSetImpl<Argument*> &ArgsToPromote, - SmallPtrSetImpl<Argument*> &ByValArgsToTransform); + SmallPtrSet<Argument*, 8> &ArgsToPromote, + SmallPtrSet<Argument*, 8> &ByValArgsToTransform); using llvm::Pass::doInitialization; bool doInitialization(CallGraph &CG) override; @@ -495,8 +495,8 @@ bool ArgPromotion::isSafeToPromoteArgument(Argument *Arg, /// arguments, and returns the new function. At this point, we know that it's /// safe to do so. CallGraphNode *ArgPromotion::DoPromotion(Function *F, - SmallPtrSetImpl<Argument*> &ArgsToPromote, - SmallPtrSetImpl<Argument*> &ByValArgsToTransform) { + SmallPtrSet<Argument*, 8> &ArgsToPromote, + SmallPtrSet<Argument*, 8> &ByValArgsToTransform) { // Start by computing a new prototype for the function, which is the same as // the old function, but has modified arguments. |