From fbd62f053296ffb9e3ce34c6c4b84041ea87db26 Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Tue, 6 Nov 2012 23:47:12 +0100 Subject: [PATCH] It makes no sense to not inline alwaysinline functions. --- gen/optimizer.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gen/optimizer.cpp b/gen/optimizer.cpp index 1aabf4ba..d5845154 100644 --- a/gen/optimizer.cpp +++ b/gen/optimizer.cpp @@ -159,10 +159,7 @@ static void addOptimizationPasses(PassManagerBase &mpm, FunctionPassManager &fpm builder.OptLevel = optLevel; builder.SizeLevel = sizeLevel; - if (enableInlining == cl::BOU_FALSE) { - // If -disable-inlining has been explictly specified, don't perform - // any inlining at all. - } else if (willInline()) { + if (willInline()) { unsigned threshold = 225; if (sizeLevel == 1) // -Os threshold = 75;