mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
It makes no sense to not inline alwaysinline functions.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user