summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-02-15 00:23:55 +0000
committerChad Rosier <mcrosier@apple.com>2012-02-15 00:23:55 +0000
commitdccc4794e6e66ab25ea2cf6db354e2cee402b11f (patch)
tree6aa4a39f3f520027d2fc109df58e8c11d463fbb7 /llvm/lib/Target
parenta432feaf2642e510ca189223f76838008f7b9463 (diff)
downloadbcm5719-llvm-dccc4794e6e66ab25ea2cf6db354e2cee402b11f.tar.gz
bcm5719-llvm-dccc4794e6e66ab25ea2cf6db354e2cee402b11f.zip
Use a temporary variable, rather then a series of redundant calls.
llvm-svn: 150536
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/ARM/ARMFastISel.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/lib/Target/ARM/ARMFastISel.cpp b/llvm/lib/Target/ARM/ARMFastISel.cpp
index cc9d42a86c0..bd0a64c542c 100644
--- a/llvm/lib/Target/ARM/ARMFastISel.cpp
+++ b/llvm/lib/Target/ARM/ARMFastISel.cpp
@@ -2207,10 +2207,11 @@ bool ARMFastISel::SelectCall(const Instruction *I,
SmallVector<unsigned, 8> ArgRegs;
SmallVector<MVT, 8> ArgVTs;
SmallVector<ISD::ArgFlagsTy, 8> ArgFlags;
- Args.reserve(CS.arg_size());
- ArgRegs.reserve(CS.arg_size());
- ArgVTs.reserve(CS.arg_size());
- ArgFlags.reserve(CS.arg_size());
+ unsigned arg_size = CS.arg_size();
+ Args.reserve(arg_size);
+ ArgRegs.reserve(arg_size);
+ ArgVTs.reserve(arg_size);
+ ArgFlags.reserve(arg_size);
for (ImmutableCallSite::arg_iterator i = CS.arg_begin(), e = CS.arg_end();
i != e; ++i) {
// If we're lowering a memory intrinsic instead of a regular call, skip the
OpenPOWER on IntegriCloud