diff options
author | cor3ntin <corentinjabot@gmail.com> | 2025-03-19 15:16:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-19 15:16:38 +0100 |
commit | baef6fadbf0e4ddac33c6a8a6275208435f52965 (patch) | |
tree | cacb1a9ff21e0626d286fe63eed634d7f6f66c10 /llvm/lib/Transforms/Utils/LoopUtils.cpp | |
parent | 0cb9c5045b556c668e6d7b47f6a90032d2aa0f21 (diff) | |
download | llvm-baef6fadbf0e4ddac33c6a8a6275208435f52965.zip llvm-baef6fadbf0e4ddac33c6a8a6275208435f52965.tar.gz llvm-baef6fadbf0e4ddac33c6a8a6275208435f52965.tar.bz2 |
[Clang] Increase the default expression nesting limit (#132021)
This iterates on #104717 (which we had to revert)
In a bid to increase our chances of success, we try to avoid blowing up
the stack by
- Using `runWithSufficientStackSpace` in ParseCompoundStatement
- Reducing the size of `StmtVector` a bit
- Reducing the size of `DeclsInGroup` a bit
- Removing a few `ParsedAttributes` from the stacks in places where they
are not strictly necessary. `ParsedAttributes` is a _huge_ object
On a 64 bits system, the following stack size reductions are observed
```
ParseStatementOrDeclarationAfterAttributes: 344 -> 264
ParseStatementOrDeclaration: 520 -> 376
ParseCompoundStatementBody: 1080 -> 1016
ParseDeclaration: 264 -> 120
```
Fixes #94728
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions