[llvm-commits] [llvm] r150538 - /llvm/trunk/lib/Target/X86/X86FastISel.cpp
Chad Rosier
mcrosier at apple.com
Tue Feb 14 16:36:26 PST 2012
Author: mcrosier
Date: Tue Feb 14 18:36:26 2012
New Revision: 150538
URL: http://llvm.org/viewvc/llvm-project?rev=150538&view=rev
Log:
Use a temporary variable, rather then a series of redundant calls.
Modified:
llvm/trunk/lib/Target/X86/X86FastISel.cpp
Modified: llvm/trunk/lib/Target/X86/X86FastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86FastISel.cpp?rev=150538&r1=150537&r2=150538&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86FastISel.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86FastISel.cpp Tue Feb 14 18:36:26 2012
@@ -1576,10 +1576,11 @@
SmallVector<unsigned, 8> Args;
SmallVector<MVT, 8> ArgVTs;
SmallVector<ISD::ArgFlagsTy, 8> ArgFlags;
- Args.reserve(CS.arg_size());
- ArgVals.reserve(CS.arg_size());
- ArgVTs.reserve(CS.arg_size());
- ArgFlags.reserve(CS.arg_size());
+ unsigned arg_size = CS.arg_size();
+ Args.reserve(arg_size);
+ ArgVals.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 mem intrinsic instead of a regular call, skip the
More information about the llvm-commits
mailing list