]> granicus.if.org Git - clang/commitdiff
[analyzer] Bump down the max size of functions being analyzed.
authorAnna Zaks <ganna@apple.com>
Tue, 8 Jan 2013 20:09:00 +0000 (20:09 +0000)
committerAnna Zaks <ganna@apple.com>
Tue, 8 Jan 2013 20:09:00 +0000 (20:09 +0000)
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

include/clang/StaticAnalyzer/Core/AnalyzerOptions.h

index 02bb036a0a9e47261aa211224369cf6419b5b104..5ae8262abe59066cf55cb043db39366bc59efc6f 100644 (file)
@@ -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;
   }
 };