[all-commits] [llvm/llvm-project] a2b311: [clang] Reduce the small vector size for DeclTypeI...
Haojian Wu via All-commits
all-commits at lists.llvm.org
Tue Jul 15 04:44:45 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a2b31109458a10197e038959c1ccbcf9a84284a8
https://github.com/llvm/llvm-project/commit/a2b31109458a10197e038959c1ccbcf9a84284a8
Author: Haojian Wu <hokein.wu at gmail.com>
Date: 2025-07-15 (Tue, 15 Jul 2025)
Changed paths:
M clang/include/clang/Sema/DeclSpec.h
Log Message:
-----------
[clang] Reduce the small vector size for DeclTypeInfo. (#148788)
The `Declarator` class is large (4584 bytes) and used as a stack-local
variable during parsing.
This patch reduces the default size of its `DeclTypeInfo` member,
reducing the overall size down to 3880 bytes. This allows clang handle
more deeply nested expressions without exhausting the stack.
Combined with #148726, the nesting threshold for such expressions
increases to `~1100`.
No performance impact being
[observed](https://llvm-compile-time-tracker.com/compare.php?from=d4f5ed6a23464cbe831820cb695aa1d39b11e4aa&to=66ba54b8a295cc2759387ef2a4a162de2ad4946e&stat=instructions:u).
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list