]> granicus.if.org Git - clang/commit
CodeGen: Reduce LValue and CallArgList memory footprint before recommitting r326946
authorYaxun Liu <Yaxun.Liu@amd.com>
Wed, 14 Mar 2018 15:02:28 +0000 (15:02 +0000)
committerYaxun Liu <Yaxun.Liu@amd.com>
Wed, 14 Mar 2018 15:02:28 +0000 (15:02 +0000)
commitc2a8342c9a7402690fffc78dea8f7228f59e197f
tree9193ff5e713f10fe83dc03b32da7e6f86312955f
parentf4806a953bdf5b1d9756cc091887a8e34d6ebca3
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@327515 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGCall.h
lib/CodeGen/CGValue.h