diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-06-06 22:13:27 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-06-06 22:13:27 +0000 |
commit | 42d41fda0873c27b81e18662f5746783a974301d (patch) | |
tree | 149707c71aa432b28146bbc446c96134e503b4fc /tools/opt/opt.cpp | |
parent | a46a100945c839a9b9baa6da0dcafafcd42d1085 (diff) | |
download | external_llvm-42d41fda0873c27b81e18662f5746783a974301d.zip external_llvm-42d41fda0873c27b81e18662f5746783a974301d.tar.gz external_llvm-42d41fda0873c27b81e18662f5746783a974301d.tar.bz2 |
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/opt.cpp')
-rw-r--r-- | tools/opt/opt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index 12f7fcb..aa375c5 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; |