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)
Paths
| Differential D124250
[Serialization] write expr dependence bits as a single integer ClosedPublic Authored by sammccall on Apr 22 2022, 5:01 AM.
Details Summary When exprs are written unabbreviated:
clangd --check=clangd/AST.cpp reports ~1% reduction in PCH size
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Apr 25 2022, 2:43 AM This revision was landed with ongoing or failed builds.Apr 25 2022, 3:09 AM Closed by commit rG0cd5cd19af0e: [Serialization] write expr dependence bits as a single integer (authored by sammccall). · Explain Why This revision was automatically updated to reflect the committed changes. Comment Actions Hi, this broke a test on AIX https://lab.llvm.org/buildbot/#/builders/214/builds/903/steps/6/logs/FAIL__Clang__pch-with-module_m sammccall added subscribers: aeubanks, bhuvanendrakumarn, Rakete1111 and 4 others.Apr 25 2022, 8:24 AM Comment ActionsHi Jake, I suspect something about the test/runner is nonhermetic, I'm going to try This commit changes the serialized PCH format. Only mystery is why the c-index-test line doesn't fail if it doesn't manage Comment Actions 1c65c734c93f8c4d39947e596d7fe89289ce283d will clear the PCH file. If this
Revision Contents
Diff 424852 clang/lib/Serialization/ASTReaderStmt.cpp
clang/lib/Serialization/ASTWriterDecl.cpp
clang/lib/Serialization/ASTWriterStmt.cpp
|
NIT: add constexpr?