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
llvm/lib/Transforms/IPO

View File

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