From 3fd5f370a28552976c52e76c3035d79012d78dda Mon Sep 17 00:00:00 2001 From: Anna Zaks Date: Fri, 9 Mar 2012 21:14:01 +0000 Subject: [analyzer] Add support for NoRedundancy inlining mode. We do not reanalyze a function, which has already been analyzed as an inlined callee. As per PRELIMINARY testing, this gives over 50% run time reduction on some benchmarks without decreasing of the number of bugs found. Turning the mode on by default. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152440 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Frontend/CompilerInvocation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Frontend/CompilerInvocation.cpp') diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp index 8900906b17..7f7f35cc09 100644 --- a/lib/Frontend/CompilerInvocation.cpp +++ b/lib/Frontend/CompilerInvocation.cpp @@ -138,7 +138,7 @@ static void AnalyzerOptsToArgs(const AnalyzerOptions &Opts, Res.push_back("-analyzer-ipa"); Res.push_back(getAnalysisIPAModeName(Opts.IPAMode)); } - if (Opts.InliningMode != All) { + if (Opts.InliningMode != NoRedundancy) { Res.push_back("-analyzer-inlining-mode"); Res.push_back(getAnalysisInliningModeName(Opts.InliningMode)); } -- cgit v1.2.3-18-g5258