Tweak inliner thresholds to match llvm-gcc, see r95321.

llvm-svn: 95379
This commit is contained in:
Daniel Dunbar 2010-02-05 07:32:37 +00:00
parent 675ae27e37
commit 4e9083260b
1 changed files with 3 additions and 3 deletions

View File

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