From: Anna Zaks Date: Mon, 5 Mar 2012 23:54:55 +0000 (+0000) Subject: [analyzer] Bump up the size of the functions that should be X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8fbb4e665dda8227f369877c11828e4402c48eba;p=clang [analyzer] Bump up the size of the functions that should be considered for inlining to 200 BBs. Setting the max to 10 BBs introduced several false negatives, we'll reevaluate the setting later on along with other inlining heuristics. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152072 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Driver/CC1Options.td b/include/clang/Driver/CC1Options.td index e7a0ad38f9..1aa96f0108 100644 --- a/include/clang/Driver/CC1Options.td +++ b/include/clang/Driver/CC1Options.td @@ -85,7 +85,7 @@ def analyzer_inline_call : Flag<"-analyzer-inline-call">, def analyzer_inline_max_stack_depth : Separate<"-analyzer-inline-max-stack-depth">, HelpText<"Bound on stack depth while inlining (4 by default)">; def analyzer_inline_max_function_size : Separate<"-analyzer-inline-max-function-size">, - HelpText<"Bound on the number of basic blocks in an inlined function (10 by default)">; + HelpText<"Bound on the number of basic blocks in an inlined function (200 by default)">; def analyzer_max_nodes : Separate<"-analyzer-max-nodes">, HelpText<"The maximum number of nodes the analyzer can generate (150000 default, 0 = no limit)">; def analyzer_max_loop : Separate<"-analyzer-max-loop">, diff --git a/include/clang/Frontend/AnalyzerOptions.h b/include/clang/Frontend/AnalyzerOptions.h index a39dc25c04..3b41f4b1fb 100644 --- a/include/clang/Frontend/AnalyzerOptions.h +++ b/include/clang/Frontend/AnalyzerOptions.h @@ -110,7 +110,7 @@ public: PrintStats = 0; // Cap the stack depth at 4 calls (5 stack frames, base + 4 calls). InlineMaxStackDepth = 5; - InlineMaxFunctionSize = 10; + InlineMaxFunctionSize = 200; } };