aboutsummaryrefslogtreecommitdiff
path: root/tools/opt
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-06-06 22:13:27 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-06-06 22:13:27 +0000
commit42d41fda0873c27b81e18662f5746783a974301d (patch)
tree149707c71aa432b28146bbc446c96134e503b4fc /tools/opt
parenta46a100945c839a9b9baa6da0dcafafcd42d1085 (diff)
We only do always-inlining at -O1; make opt reflect that.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132693 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/opt')
-rw-r--r--tools/opt/opt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp
index 12f7fcb72b..aa375c5889 100644
--- a/tools/opt/opt.cpp
+++ b/tools/opt/opt.cpp
@@ -412,7 +412,7 @@ static void AddOptimizationPasses(PassManagerBase &MPM,FunctionPassManager &FPM,
if (DisableInline) {
// No inlining pass
- } else if (OptLevel) {
+ } else if (OptLevel > 1) {
unsigned Threshold = 225;
if (OptLevel > 2)
Threshold = 275;