diff options
author | Haojian Wu <hokein.wu@gmail.com> | 2020-09-21 13:08:17 +0200 |
---|---|---|
committer | Haojian Wu <hokein.wu@gmail.com> | 2020-09-21 13:08:53 +0200 |
commit | af29591650c43bd3bdc380c9d47b8bfd0f1664a2 (patch) | |
tree | bc50dcc0a3aebfa2378dc997eaa295f5de8f61f8 /llvm/lib/CodeGen/MachineScheduler.cpp | |
parent | 11dccf8d3aa5d55210f8b886fb21926c7a8353ca (diff) | |
download | llvm-af29591650c43bd3bdc380c9d47b8bfd0f1664a2.zip llvm-af29591650c43bd3bdc380c9d47b8bfd0f1664a2.tar.gz llvm-af29591650c43bd3bdc380c9d47b8bfd0f1664a2.tar.bz2 |
[AST] Reduce the size of TemplateArgumentLocInfo.
allocate the underlying data of Template kind separately, this would reduce AST
memory usage
- TemplateArgumentLocInfo 24 => 8 bytes
- TemplateArgumentLoc 48 => 32 bytes
- DynTypeNode 56 => 40 bytes
ASTContext::.getASTAllocatedMemory changes:
SemaDecl.cpp 255.5 MB => 247.5MB
SemaExpr.cpp 293.5 MB => 283.5MB
Differential Revision: https://reviews.llvm.org/D87080
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
0 files changed, 0 insertions, 0 deletions