forked from OSchip/llvm-project
[Attributor][NFC] Format code
This commit is contained in:
parent
b7448a348b
commit
266949b2bc
|
@ -2204,8 +2204,9 @@ static bool runAttributorOnFunctions(InformationCache &InfoCache,
|
||||||
// TODO: for now we eagerly internalize functions without calculating the
|
// TODO: for now we eagerly internalize functions without calculating the
|
||||||
// cost, we need a cost interface to determine whether internalizing
|
// cost, we need a cost interface to determine whether internalizing
|
||||||
// a function is "benefitial"
|
// a function is "benefitial"
|
||||||
if (AllowDeepWrapper)
|
if (AllowDeepWrapper) {
|
||||||
for (unsigned u = 0; u < Functions.size(); u ++) {
|
unsigned FunSize = Functions.size();
|
||||||
|
for (unsigned u = 0; u < FunSize; u++) {
|
||||||
Function *F = Functions[u];
|
Function *F = Functions[u];
|
||||||
if (!F->isDeclaration() && !F->isDefinitionExact() && F->getNumUses() &&
|
if (!F->isDeclaration() && !F->isDefinitionExact() && F->getNumUses() &&
|
||||||
!GlobalValue::isInterposableLinkage(F->getLinkage())) {
|
!GlobalValue::isInterposableLinkage(F->getLinkage())) {
|
||||||
|
@ -2221,6 +2222,7 @@ static bool runAttributorOnFunctions(InformationCache &InfoCache,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for (Function *F : Functions) {
|
for (Function *F : Functions) {
|
||||||
if (F->hasExactDefinition())
|
if (F->hasExactDefinition())
|
||||||
|
|
Loading…
Reference in New Issue