It makes no sense to not inline alwaysinline functions.

This commit is contained in:
David Nadlinger
2012-11-06 23:47:12 +01:00
parent b7ecd71d75
commit fbd62f0532

View File

@@ -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;