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