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
This commit is contained in:
Eli Friedman 2011-06-06 22:13:27 +00:00
parent a46a100945
commit 42d41fda08

View File

@ -412,7 +412,7 @@ static void AddOptimizationPasses(PassManagerBase &MPM,FunctionPassManager &FPM,
if (DisableInline) { if (DisableInline) {
// No inlining pass // No inlining pass
} else if (OptLevel) { } else if (OptLevel > 1) {
unsigned Threshold = 225; unsigned Threshold = 225;
if (OptLevel > 2) if (OptLevel > 2)
Threshold = 275; Threshold = 275;