[PATCH] D101793: [clang][AST] Improve AST Reader/Writer memory footprint
Wei Wang via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu May 6 10:11:59 PDT 2021
weiwang added a comment.
In D101793#2735336 <https://reviews.llvm.org/D101793#2735336>, @yaxunl wrote:
> Decls in Sema::DeclsToCheckForDeferredDiags is supposed to be unique. Therefore the fact that '1,734,387,685 out of 1,734,404,000 elements are the same' is surprising. Did this happen when you compile the source code and write AST? What language was the source code? C++, OpenMP, or CUDA? What was the decl that got duplicated? Thanks.
Sorry for the late reply.
This happens during a single compilation instance, and emits a module file from a big list of module map files and headers. I believe the code is pure C++. Because of the huge amount of duplications, the memory RSS shoots to over 50GB. I'll update once having more information.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101793/new/
https://reviews.llvm.org/D101793
More information about the cfe-commits
mailing list