[llvm] d138e97 - [GlobalISel] Bump CallLoweringInfo::OrigArgs initial size to 32. NFC.
Amara Emerson via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 29 01:01:38 PDT 2021
Author: Amara Emerson
Date: 2021-04-29T01:01:29-07:00
New Revision: d138e97c2a741fe7c9d4fa278e262ef95b63a358
URL: https://github.com/llvm/llvm-project/commit/d138e97c2a741fe7c9d4fa278e262ef95b63a358
DIFF: https://github.com/llvm/llvm-project/commit/d138e97c2a741fe7c9d4fa278e262ef95b63a358.diff
LOG: [GlobalISel] Bump CallLoweringInfo::OrigArgs initial size to 32. NFC.
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.
Added:
Modified:
llvm/include/llvm/CodeGen/GlobalISel/CallLowering.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/CodeGen/GlobalISel/CallLowering.h b/llvm/include/llvm/CodeGen/GlobalISel/CallLowering.h
index 868980d24fc2..14b5988c7a4e 100644
--- a/llvm/include/llvm/CodeGen/GlobalISel/CallLowering.h
+++ b/llvm/include/llvm/CodeGen/GlobalISel/CallLowering.h
@@ -104,7 +104,7 @@ class CallLowering {
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.
More information about the llvm-commits
mailing list