aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2012-03-05 23:54:55 +0000
committerAnna Zaks <ganna@apple.com>2012-03-05 23:54:55 +0000
commit8fbb4e665dda8227f369877c11828e4402c48eba (patch)
tree110437fc004f1a695247e466e00dbd60f9275db2
parent6a5d30e8fda56936347e47a98cbb21f89e67d5ae (diff)
[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
-rw-r--r--include/clang/Driver/CC1Options.td2
-rw-r--r--include/clang/Frontend/AnalyzerOptions.h2
2 files changed, 2 insertions, 2 deletions
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;
}
};