mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 17:29:19 +00:00
Pad my commit stats by reducing indentation in this now separate
commit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93473 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
51bc5612b3
commit
83c20d3fb3
@ -110,25 +110,26 @@ static bool callIsSmall(const Function *F) {
|
|||||||
|
|
||||||
if (F->hasLocalLinkage()) return false;
|
if (F->hasLocalLinkage()) return false;
|
||||||
|
|
||||||
if (F->hasName()) {
|
if (!F->hasName()) return false;
|
||||||
StringRef Name = F->getName();
|
|
||||||
|
StringRef Name = F->getName();
|
||||||
// These will all likely lower to a single selection DAG node.
|
|
||||||
if (Name == "copysign" || Name == "copysignf" ||
|
// These will all likely lower to a single selection DAG node.
|
||||||
Name == "fabs" || Name == "fabsf" || Name == "fabsl" ||
|
if (Name == "copysign" || Name == "copysignf" ||
|
||||||
Name == "sin" || Name == "sinf" || Name == "sinl" ||
|
Name == "fabs" || Name == "fabsf" || Name == "fabsl" ||
|
||||||
Name == "cos" || Name == "cosf" || Name == "cosl" ||
|
Name == "sin" || Name == "sinf" || Name == "sinl" ||
|
||||||
Name == "sqrt" || Name == "sqrtf" || Name == "sqrtl" )
|
Name == "cos" || Name == "cosf" || Name == "cosl" ||
|
||||||
return true;
|
Name == "sqrt" || Name == "sqrtf" || Name == "sqrtl" )
|
||||||
|
return true;
|
||||||
// These are all likely to be optimized into something smaller.
|
|
||||||
if (Name == "pow" || Name == "powf" || Name == "powl" ||
|
// These are all likely to be optimized into something smaller.
|
||||||
Name == "exp2" || Name == "exp2l" || Name == "exp2f" ||
|
if (Name == "pow" || Name == "powf" || Name == "powl" ||
|
||||||
Name == "floor" || Name == "floorf" || Name == "ceil" ||
|
Name == "exp2" || Name == "exp2l" || Name == "exp2f" ||
|
||||||
Name == "round" || Name == "ffs" || Name == "ffsl" ||
|
Name == "floor" || Name == "floorf" || Name == "ceil" ||
|
||||||
Name == "abs" || Name == "labs" || Name == "llabs")
|
Name == "round" || Name == "ffs" || Name == "ffsl" ||
|
||||||
return true;
|
Name == "abs" || Name == "labs" || Name == "llabs")
|
||||||
}
|
return true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user