summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2012-03-09 21:14:01 +0000
committerAnna Zaks <ganna@apple.com>2012-03-09 21:14:01 +0000
commit394d07ea88d6f748b18a2571e7deb41ff81c9b6e (patch)
tree521e31b96d9828401aebfe6958af136bf3e873e2 /clang/lib/Frontend/CompilerInvocation.cpp
parentc255577062e9b97d559ffdaaf258e99e07ce902e (diff)
downloadbcm5719-llvm-394d07ea88d6f748b18a2571e7deb41ff81c9b6e.tar.gz
bcm5719-llvm-394d07ea88d6f748b18a2571e7deb41ff81c9b6e.zip
[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. llvm-svn: 152440
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index 8900906b17b..7f7f35cc099 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/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));
}
OpenPOWER on IntegriCloud