]> granicus.if.org Git - clang/commitdiff
[analyzer] Bump up the size of the functions that should be
authorAnna Zaks <ganna@apple.com>
Mon, 5 Mar 2012 23:54:55 +0000 (23:54 +0000)
committerAnna Zaks <ganna@apple.com>
Mon, 5 Mar 2012 23:54:55 +0000 (23:54 +0000)
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

include/clang/Driver/CC1Options.td
include/clang/Frontend/AnalyzerOptions.h

index e7a0ad38f9630f5e90346d711565e7f06fe473aa..1aa96f0108f94bfa2d1aed4748680b5300f2f777 100644 (file)
@@ -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">,
index a39dc25c0423b906a149d4d6a1d3e4f6c2da2547..3b41f4b1fb7732dc6d3c9f1b362407d57e31f7ed 100644 (file)
@@ -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;
   }
 };