[cfe-commits] r171891 - /cfe/trunk/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h

Anna Zaks ganna at apple.com
Tue Jan 8 12:09:00 PST 2013


Author: zaks
Date: Tue Jan  8 14:09:00 2013
New Revision: 171891

URL: http://llvm.org/viewvc/llvm-project?rev=171891&view=rev
Log:
[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.)

Modified:
    cfe/trunk/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h

Modified: cfe/trunk/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h?rev=171891&r1=171890&r2=171891&view=diff
==============================================================================
--- cfe/trunk/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h (original)
+++ cfe/trunk/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h Tue Jan  8 14:09:00 2013
@@ -304,7 +304,7 @@
     NoRetryExhausted = 0;
     // Cap the stack depth at 4 calls (5 stack frames, base + 4 calls).
     InlineMaxStackDepth = 5;
-    InlineMaxFunctionSize = 200;
+    InlineMaxFunctionSize = 50;
     InliningMode = NoRedundancy;
   }
 };





More information about the cfe-commits mailing list