[llvm-commits] CVS: llvm/lib/CodeGen/IntrinsicLowering.cpp
Chris Lattner
sabre at nondot.org
Mon Feb 12 22:01:38 PST 2007
Changes in directory llvm/lib/CodeGen:
IntrinsicLowering.cpp updated: 1.66 -> 1.67
---
Log message:
eliminate vector-related allocations
---
Diffs of the changes: (+4 -2)
IntrinsicLowering.cpp | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
Index: llvm/lib/CodeGen/IntrinsicLowering.cpp
diff -u llvm/lib/CodeGen/IntrinsicLowering.cpp:1.66 llvm/lib/CodeGen/IntrinsicLowering.cpp:1.67
--- llvm/lib/CodeGen/IntrinsicLowering.cpp:1.66 Tue Feb 6 13:06:38 2007
+++ llvm/lib/CodeGen/IntrinsicLowering.cpp Tue Feb 13 00:01:22 2007
@@ -19,6 +19,7 @@
#include "llvm/CodeGen/IntrinsicLowering.h"
#include "llvm/Support/Streams.h"
#include "llvm/Target/TargetData.h"
+#include "llvm/ADT/SmallVector.h"
using namespace llvm;
template <class ArgIt>
@@ -52,8 +53,9 @@
FunctionType::get(RetTy, ParamTys, false));
}
- std::vector<Value*> Operands(ArgBegin, ArgEnd);
- CallInst *NewCI = new CallInst(FCache, Operands, CI->getName(), CI);
+ SmallVector<Value*, 8> Operands(ArgBegin, ArgEnd);
+ CallInst *NewCI = new CallInst(FCache, &Operands[0], Operands.size(),
+ CI->getName(), CI);
if (!CI->use_empty())
CI->replaceAllUsesWith(NewCI);
return NewCI;
More information about the llvm-commits
mailing list