Use early continue to reduce indentation.

llvm-svn: 256272
This commit is contained in:
Rafael Espindola 2015-12-22 19:26:18 +00:00
parent e4ed0e56ce
commit 9f0bebc3da
1 changed files with 21 additions and 19 deletions

View File

@ -2030,7 +2030,10 @@ bool GlobalOpt::OptimizeFunctions(Module &M) {
F->eraseFromParent(); F->eraseFromParent();
Changed = true; Changed = true;
++NumFnDeleted; ++NumFnDeleted;
} else if (F->hasLocalLinkage()) { continue;
}
if (!F->hasLocalLinkage())
continue;
if (isProfitableToMakeFastCC(F) && !F->isVarArg() && if (isProfitableToMakeFastCC(F) && !F->isVarArg() &&
!F->hasAddressTaken()) { !F->hasAddressTaken()) {
// If this function has a calling convention worth changing, is not a // If this function has a calling convention worth changing, is not a
@ -2051,7 +2054,6 @@ bool GlobalOpt::OptimizeFunctions(Module &M) {
Changed = true; Changed = true;
} }
} }
}
return Changed; return Changed;
} }