mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-04-29 06:30:39 +03:00
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:
parent
08a8f5df9b
commit
0647cfb50c
2 changed files with 2 additions and 2 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue