Re-enable inlining by default for -O2 and above.

This fixes a bug introduced in 2f78dc686.

Thanks to Jernej (jerro) for the fix!
This commit is contained in:
David Nadlinger 2012-11-04 14:28:26 +01:00
parent 08a8f5df9b
commit 0647cfb50c
2 changed files with 2 additions and 2 deletions

View file

@ -101,7 +101,7 @@ static unsigned sizeLevel() {
// Determines whether or not to run the normal, full inlining pass.
bool willInline() {
return enableInlining == cl::BOU_TRUE ||
(enableInlining != cl::BOU_UNSET && optLevel() > 1);
(enableInlining == cl::BOU_UNSET && optLevel() > 1);
}
llvm::CodeGenOpt::Level codeGenOptLevel() {