aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/SemaModule.cpp
diff options
context:
space:
mode:
authorWenlei He <aktoon@gmail.com>2022-07-08 17:17:11 -0700
committerWenlei He <aktoon@gmail.com>2022-07-08 21:32:39 -0700
commita78f436c3f523ced389f7cf9f47da25efe43e28e (patch)
treef542df08b936ff01ee28c67bd2008f120a939d79 /clang/lib/Sema/SemaModule.cpp
parent99cc28b705e850933ac5bcd14abeb63425e51484 (diff)
downloadllvm-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