From: Anna Zaks Date: Tue, 8 Jan 2013 20:09:00 +0000 (+0000) Subject: [analyzer] Bump down the max size of functions being analyzed. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=41748f7d3ae36db1b1c52eaaf76631ed60c79c53;p=clang [analyzer] Bump down the max size of functions being analyzed. With the new setting, we are not going to inline any functions that are more than 50 basic blocks. (The analyzer is 20% faster on several especially bad benchmarks with the new default.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171891 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h b/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h index 02bb036a0a..5ae8262abe 100644 --- a/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h +++ b/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h @@ -304,7 +304,7 @@ public: NoRetryExhausted = 0; // Cap the stack depth at 4 calls (5 stack frames, base + 4 calls). InlineMaxStackDepth = 5; - InlineMaxFunctionSize = 200; + InlineMaxFunctionSize = 50; InliningMode = NoRedundancy; } };