[GlobalISel] Bump CallLoweringInfo::OrigArgs initial size to 32. NFC.
authorAmara Emerson <amara@apple.com>
Thu, 29 Apr 2021 07:59:12 +0000 (00:59 -0700)
committerAmara Emerson <amara@apple.com>
Thu, 29 Apr 2021 08:01:29 +0000 (01:01 -0700)
We spend some time during sqlite3 compilation regrowing this vector,
bump it up to avoid this.

Gives around 1-2% improvement in codegen-only time for sqlite3 at -O0.

llvm/include/llvm/CodeGen/GlobalISel/CallLowering.h

index 868980d..14b5988 100644 (file)
@@ -104,7 +104,7 @@ public:
     ArgInfo OrigRet;
 
     /// List of descriptors of the arguments passed to the function.
-    SmallVector<ArgInfo, 8> OrigArgs;
+    SmallVector<ArgInfo, 32> OrigArgs;
 
     /// Valid if the call has a swifterror inout parameter, and contains the
     /// vreg that the swifterror should be copied into after the call.