forked from OSchip/llvm-project
Use early continue to reduce indentation.
llvm-svn: 256272
This commit is contained in:
parent
e4ed0e56ce
commit
9f0bebc3da
llvm/lib/Transforms/IPO
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue