Commit a2b3110
authored
[clang] Reduce the small vector size for DeclTypeInfo. (llvm#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 llvm#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).1 parent 2a9afdb commit a2b3110
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1918 | 1918 | | |
1919 | 1919 | | |
1920 | 1920 | | |
1921 | | - | |
| 1921 | + | |
1922 | 1922 | | |
1923 | 1923 | | |
1924 | 1924 | | |
| |||
0 commit comments