[all-commits] [llvm/llvm-project] af8695: [C++20] [Modules] Don't load declaration eagerly f...

Chuanqi Xu via All-commits all-commits at lists.llvm.org
Thu Mar 9 23:00:55 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: af86957cbbffd3dfff3c6750ebddf118aebd0069
      https://github.com/llvm/llvm-project/commit/af86957cbbffd3dfff3c6750ebddf118aebd0069
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2023-03-10 (Fri, 10 Mar 2023)

  Changed paths:
    M clang/lib/Serialization/ASTWriterDecl.cpp
    A clang/test/Modules/no-eager-load.cppm

  Log Message:
  -----------
  [C++20] [Modules] Don't load declaration eagerly for named modules

Close https://github.com/llvm/llvm-project/issues/61064.

The root cause of the issue is that we will deserilize some declarations
eagerly when reading the BMI. However, many declarations in the BMI are
not necessary for the importer. So it wastes a lot of time.




More information about the All-commits mailing list