forked from OSchip/llvm-project
Tweak inliner thresholds to match llvm-gcc, see r95321.
llvm-svn: 95379
This commit is contained in:
parent
675ae27e37
commit
4e9083260b
|
@ -343,11 +343,11 @@ void BackendConsumer::CreatePasses() {
|
|||
// Set the inline threshold following llvm-gcc.
|
||||
//
|
||||
// FIXME: Derive these constants in a principled fashion.
|
||||
unsigned Threshold = 200;
|
||||
unsigned Threshold = 225;
|
||||
if (CodeGenOpts.OptimizeSize)
|
||||
Threshold = 50;
|
||||
Threshold = 75;
|
||||
else if (OptLevel > 2)
|
||||
Threshold = 250;
|
||||
Threshold = 275;
|
||||
InliningPass = createFunctionInliningPass(Threshold);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue