diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2013-09-06 01:13:30 +0000 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2013-09-06 01:13:30 +0000 |
| commit | 1ac6c93b7fc1dc29cc847079342172c2cc23c143 (patch) | |
| tree | b9974078d8b529de1d2c9ab2ddbd4d85b04502fb /lib/CodeGen/CodeGenFunction.cpp | |
| parent | 9ec28913dcec67bf3f6b841f34d1401229ba4604 (diff) | |
| download | clang-1ac6c93b7fc1dc29cc847079342172c2cc23c143.tar.gz clang-1ac6c93b7fc1dc29cc847079342172c2cc23c143.tar.bz2 clang-1ac6c93b7fc1dc29cc847079342172c2cc23c143.tar.xz | |
Reduce stack usage of TreeTransform.
Without this patch, TreeTransform::TransformExpr uses a ridiculous amount of
stack space (around 5000 bytes). Preventing inlining brings the stack usage
down to something sane.
On a testcase I have, on my computer, this allows changing -ftemplate-depth
from 210 to around 750 before we crash. I'm not sure I should commit the
testcase, though: I don't want to cause test failures on platforms with less
stack space available.
<rdar://problem/14098189>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190114 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
