diff options
| author | Wenlei He <aktoon@gmail.com> | 2022-07-08 17:17:11 -0700 |
|---|---|---|
| committer | Wenlei He <aktoon@gmail.com> | 2022-07-08 21:32:39 -0700 |
| commit | a78f436c3f523ced389f7cf9f47da25efe43e28e (patch) | |
| tree | f542df08b936ff01ee28c67bd2008f120a939d79 /clang/lib/Sema/SemaModule.cpp | |
| parent | 99cc28b705e850933ac5bcd14abeb63425e51484 (diff) | |
| download | llvm-a78f436c3f523ced389f7cf9f47da25efe43e28e.zip llvm-a78f436c3f523ced389f7cf9f47da25efe43e28e.tar.gz llvm-a78f436c3f523ced389f7cf9f47da25efe43e28e.tar.bz2 | |
[Inliner] Make recusive inlinee stack size limit tunable
For recursive callers, we want to be conservative when inlining callees with large stack size. We currently have a limit `InlineConstants::TotalAllocaSizeRecursiveCaller`, but that is hard coded.
We found the current limit insufficient to suppress problematic inlining that bloats stack size for deep recursion. This change adds a switch to make the limit tunable as a mitigation.
Differential Revision: https://reviews.llvm.org/D129411
Diffstat (limited to 'clang/lib/Sema/SemaModule.cpp')
0 files changed, 0 insertions, 0 deletions
