summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGCall.h
diff options
context:
space:
mode:
authorYaxun Liu <Yaxun.Liu@amd.com>2018-03-14 15:02:28 +0000
committerYaxun Liu <Yaxun.Liu@amd.com>2018-03-14 15:02:28 +0000
commitd9389827d21ba1adf0663d4122acfa467b2d7ad8 (patch)
treeeec22a214d74b1b426ae77b3795b197f33e9a455 /clang/lib/CodeGen/CGCall.h
parent4732d43cae0c9d8a7b9c6f8bf40c86e0f5650e17 (diff)
downloadbcm5719-llvm-d9389827d21ba1adf0663d4122acfa467b2d7ad8.tar.gz
bcm5719-llvm-d9389827d21ba1adf0663d4122acfa467b2d7ad8.zip
CodeGen: Reduce LValue and CallArgList memory footprint before recommitting r326946
Recent change r326946 (https://reviews.llvm.org/D34367) causes regression in Eigen due to increased memory footprint of CallArg. This patch reduces LValue size from 112 to 96 bytes and reduces inline argument count of CallArgList from 16 to 8. It has been verified that this will let the added deep AST tree test pass with r326946. In the long run, CallArg or LValue memory footprint should be further optimized. Differential Revision: https://reviews.llvm.org/D44445 llvm-svn: 327515
Diffstat (limited to 'clang/lib/CodeGen/CGCall.h')
-rw-r--r--clang/lib/CodeGen/CGCall.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGCall.h b/clang/lib/CodeGen/CGCall.h
index 495baf0f9a2..1cac032aaf9 100644
--- a/clang/lib/CodeGen/CGCall.h
+++ b/clang/lib/CodeGen/CGCall.h
@@ -224,7 +224,7 @@ public:
/// CallArgList - Type for representing both the value and type of
/// arguments in a call.
class CallArgList :
- public SmallVector<CallArg, 16> {
+ public SmallVector<CallArg, 8> {
public:
CallArgList() : StackBase(nullptr) {}
OpenPOWER on IntegriCloud