mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
Handle sqrt in CannotBeNegativeZero. absf and absl
appear to be misspellings, removed in favor of fabs*. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82796 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -840,9 +840,13 @@ bool llvm::CannotBeNegativeZero(const Value *V, unsigned Depth) {
|
||||
if (F->isDeclaration()) {
|
||||
// abs(x) != -0.0
|
||||
if (F->getName() == "abs") return true;
|
||||
// abs[lf](x) != -0.0
|
||||
if (F->getName() == "absf") return true;
|
||||
if (F->getName() == "absl") return true;
|
||||
// fabs[lf](x) != -0.0
|
||||
if (F->getName() == "fabs") return true;
|
||||
if (F->getName() == "fabsf") return true;
|
||||
if (F->getName() == "fabsl") return true;
|
||||
if (F->getName() == "sqrt" || F->getName() == "sqrtf" ||
|
||||
F->getName() == "sqrtl")
|
||||
return CannotBeNegativeZero(CI->getOperand(1), Depth+1);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user