projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a10145f
)
another minor datastructure tweak.
author
Chris Lattner
<sabre@nondot.org>
Fri, 11 Jan 2008 18:47:45 +0000
(18:47 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 11 Jan 2008 18:47:45 +0000
(18:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45874
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/IPO/ArgumentPromotion.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/IPO/ArgumentPromotion.cpp
b/lib/Transforms/IPO/ArgumentPromotion.cpp
index 0876a2bde312840b725181c937c827a7bd067d21..91b3766fa20e63bafe8c49a5e077f62cee90d503 100644
(file)
--- a/
lib/Transforms/IPO/ArgumentPromotion.cpp
+++ b/
lib/Transforms/IPO/ArgumentPromotion.cpp
@@
-328,7
+328,7
@@
namespace {
/// safe to do so.
Function *ArgPromotion::DoPromotion(Function *F,
SmallVectorImpl<Argument*> &Args2Prom) {
-
std::set<Argument*
> ArgsToPromote(Args2Prom.begin(), Args2Prom.end());
+
SmallPtrSet<Argument*, 8
> ArgsToPromote(Args2Prom.begin(), Args2Prom.end());
// Start by computing a new prototype for the function, which is the same as
// the old function, but has modified arguments.