[all-commits] [llvm/llvm-project] 0cd5cd: [Serialization] write expr dependence bits as a si...

Sam McCall via All-commits all-commits at lists.llvm.org
Mon Apr 25 03:10:04 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0cd5cd19af0eee1d35077de6824b2fe3022d2280
      https://github.com/llvm/llvm-project/commit/0cd5cd19af0eee1d35077de6824b2fe3022d2280
  Author: Sam McCall <sam.mccall at gmail.com>
  Date:   2022-04-25 (Mon, 25 Apr 2022)

  Changed paths:
    M clang/lib/Serialization/ASTReaderStmt.cpp
    M clang/lib/Serialization/ASTWriterDecl.cpp
    M clang/lib/Serialization/ASTWriterStmt.cpp

  Log Message:
  -----------
  [Serialization] write expr dependence bits as a single integer

When exprs are written unabbreviated:
  - these were encoded as 5 x vbr6 = 30 bits
  - now they fit exactly into a one-chunk vbr = 6 bits

clangd --check=clangd/AST.cpp reports ~1% reduction in PCH size
(42826720->42474460)

Differential Revision: https://reviews.llvm.org/D124250




More information about the All-commits mailing list